![]() |
NAND vs SDCARD (where is my memory used at?)
Ok, since I had this doubt I figured I'd start a new thread to keep other thread clean.
What I understand so far: 1. NAND (internal memory) is used as "hard drive" and to store OS (what about installed apps?) 2. SDCARD (external memory) is used as "external hard drive" same as internal memory 3. RAM (where OS and APPs load into) Here are a few doubts I have.... When you boot your phone the OS gets loaded into RAM from the (in our case) SDCARD and when you turn it off this memory gets wiped out because it's volatile? Is the NAND and RAM shared in some way? Is it partitioned in any way? I remember back in the WM2003 days you could slide and pick where your memory would be used at, but that changed a long time ago. I am guessing that got replaced by RAM/NAND combination? On HTC website if you check phone specs it gives you 2 different memory sizes (I believe one is RAM the other is ROM) is NAND = ROM? Is it called ROM but we can "write" to it? It's just a name for it that stores the OS ROM (or should I call it OS installation?) I'm sure there are a few of us that are confused because ROM IS READ ONLY MEMORY written once, never to be written again and again like a "hard drive"... Examples: TP2: ROM: 512 MB / RAM: 288 MB Imagio: 512MB / 288MB (256MB Device + 32MB MSM), SD Card supported HD2: ROM 1GB; RAM 576MB |
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
Quote:
Quote:
Quote:
Further confusing the issue is that even the portions that are normally "ROM"-like are actually re-writable for things like firmware updates. |
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
Let's split my question.... Is NAND ROM or RAM? And if RAM is the memory and you load the OS from RAM to RAM, the file system is on RAM but it's not wiped out, that means if we install ANDROID to NAND (or RAM?) we will have less memory for the OS correct? Where are installed apps stored at? In comparison, a computer has "memory" and "harddrive"... Is "memory" RAM, "harddrive" ROM or vice versa? I thought I had this figured out, but not quite. I understand the PC quite well (im a computer engineer and mcpd) but these devices are confusing to me still... In a PC you have what we call harddrive where OS and apps get installed, when you use the PC the os loads into what we call memory. |
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
Ram in a phone is technically the same thing as ram in a PC, it is used for multitasking and have multiple apps open at the same time. Apps are installed on a partition of the internal memory that is not, Rom. So basicly we have three parts. Internal memory that's partitioned in 2, one part being ROM "read only memory" that we have the ability to write on to, only when flashing an OS and the other being where we install apps to. and Ram. |
Re: NAND vs SDCARD (where is my memory used at?)
Excellent explanations by both of you guys. You've been thanked, I was not able to properly describe it :D
|
Re: NAND vs SDCARD (where is my memory used at?)
Gotcha.
"ROM" = partitioned where OS resides and a writable partition where programs get installed. "RAM" = what phone uses to operate. Now my question is....why when I install apps my "RAM" decreases? Or is is "RAM" the one that has the 2 partitions and ROM only gets the OS installation? |
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
RAM is basically a place for programs to store information that it needs to access quickly - as RAM is much faster access than a hard drive, NAND, etc. So the OS uses RAM as a buffer so to speak - between the processor & storage device. So this is a place for the system to store things temporarily - you can't store things directly on RAM, as it would get cleared out on device shutdown/restart. |
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
|
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
|
Re: NAND vs SDCARD (where is my memory used at?)
The term ROM is wrong in a way..that's what threw me off to begin with. I now see it different and understand it. I hope others that had the same doubt can understand it as well, it will eliminate questions when it comes to switching the os to NAND and worry for nothing. NAND is a faster memory than SDCARD and booting times will be less once we get ANDROID on NAND.. :)
|
Re: NAND vs SDCARD (where is my memory used at?)
Hi guys,
IMO, Phone, SmartPhone, PPC & many kind of portable devices has a difference hardware design compare with PC. As many devices has SoC or Storage on Chip is a way to combine all chipset and storage into only one board to make it small, fast and decrease it's cost to product and also make it faster than use cable like IDE, PATA, SATA like in the PC. By the way Storage on phone can be divided by logic way, not hard way so it can get more flexible (It has been partitioned like our HDD: boot partition has Bootloader, some bytes used as SPL like Master Boot Record on HDD, OS, EXT ROM, OEM, XIP ....). In the summarize we can imagine it like: - ROM: is read-only-memory as it's name but usually modern ROM are kind of PROM, EPROM or EEPROM (*) so it can be re-writable such as BIOS on the PC (You can update your PC BIOS). But PROM, EPROM or EEPROM has small limit number of write in it's life cycle so it was used to store factory data or Stock ROM then that data will be use to restore to factory anytime you get error on your own runtime version (I will describe later). - NAND is a kind of Flash memory like SSD and USB. So it can be use to store data with high rate of IO to make we have fast OS running on it. IMO it has divided to 2 parts using logical way instead of hard way. 2 parts are Internal Storage & Program as called in WinMo Memory settings (You can find it in Settings -> System -> Memory). Internal Storage is use to store user data like: installed applications, application data, your images, video, book stored in "My Documents" .... so this part has been map with ROM. BTW all files and directories in this part by default are map with files & directories in ROM so you can see it almost like ROM structure right after Flash a new ROM, then you go to modify (delete, override) any file or directory in this part then it will write to "Internal Storage" and marked override flag (Caused of you can restore any override ROM's file by using some application like: SKTools from SK Software to find overrided file and restore it from ROM). The second part is use as RAM or "Program" as WinMo call it. Is my logic correct? let's comment out :) |
Re: NAND vs SDCARD (where is my memory used at?)
Quote:
In Linux, you have compcache module which sections off a chunk of RAM to use as a RAMDisk. We have the drivers and everything available in the kernel to use on the XDAndroid builds, but I'm not sure if it is actually used or not. As far as swap/pagefile goes, that is virtual memory that should only be used when the system needs to free up memory blocks but needs to retain the information it is trying to clear out. |
| All times are GMT -4. The time now is 03:43 PM. |
Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com