cancel
Showing results for 
Search instead for 
Did you mean: 

RAM and in-built storage (Internal HDD, CF etc) and external CF?

RAM and in-built storage (Internal HDD, CF etc) and external CF?

Harkanwaljeet_S
New Contributor
Hi, The title is self explanatory. I need commands to check the internal storage (hard disk, internal compact flash etc) and external compact flash for all platform running EXOS in order to find out the total size, in-use and available etc.

Thanks

Harkanwal

5 REPLIES 5

Drew_C
Valued Contributor III
An article was written that helps to explain this topic:
How to check free memory and disk space in EXOS

David_Choi
Extreme Employee
Hi Harkanwaljeet,
1) "show memory" shows system memory information in other word, system DRAM. You can see total DRAM and free from the output. In case of MSM128, it has 1G DRAM so:

(debug) BD6.4 # sh memory

System Memory Information
-------------------------
MSM-A Total DRAM (KB): 1048576
MSM-A System (KB): 40152
MSM-A User (KB): 304000
MSM-A Free (KB): 704424
MSM-B Total DRAM (KB): 1048576
MSM-B System (KB): 40152
MSM-B User (KB): 316716
MSM-B Free (KB): 691708

You can see total DRAM as 1GB and Free memory is 704MB.

2) "show memorycard" shows external USB memory (maybe CF card if it was old model). But it seems the output of this command doesn't show the size of external memory.

BD-X8.1 # show memorycard
Memorycard is present in USB-1.

So to see the size, you need to execute "fdisk -l" command in debug-mode as I mentioned.

3) "ls" just shows a portion of "/usr/local/cfg" directory and "ls internal-memory" also shows a portion of "/usr/local/tmp" directory.

1K-blocks Used Available Use%
16384 6268 10116 38%

1K-blocks Used Available Use%
49038 580 48458 1%

I believe 1K-blocks means 1024. Therefore, I think the size of "ls" is about 16M and "ls internal-memory" is about 50M.

Harkanwaljeet_S
New Contributor
Hi David,
Thanks for the update. But surprisingly, I did not find it any impressive to keep dependency on TAC for these simple things.

I have few commands as below:

1) "show memory", "top" etc commands are there for memory.

2) "show memorycard", i believe, is for the external compact flash. If yes what is the internal-memory storage capacity then (e.g. for BD8806 with MSM48c)

"ls" is showing in 1K-blocks and I am not sure if it is 512-bytes or what?

From the below output of "ls" ; shall I consider that the internal-memory is 8 MB.

1K-blocks Used Available Use%
16384 636 15748 4%

Regards,

Harkanwaljeet Singh

Stephane_Grosj1
Extreme Employee
Isn't a "ls" not enough? and a "sh mem" for RAM.

* Leaf1.1 # ls
drw-r--r-- 2 root root 1024 Oct 12 2015 dhcp
-rw-r--r-- 1 admin admin 2877 Apr 19 2015 eventd.pol
-rw-r--r-- 1 admin admin 10083 Mar 15 2015 eventd.py
-rw-r--r-- 1 root root 9078 Mar 15 2015 eventd.pyc
-rw-r--r-- 1 admin admin 927 Jan 18 2016 l2pbr-from-net.pol
-rw-r--r-- 1 admin admin 888 Jan 18 2016 l2pbr-to-net.pol
drw-r--r-- 2 root root 1024 Oct 12 2015 lost+found
-rw-r--r-- 1 admin admin 21298 Jun 30 18:45 nms.xsf
-rw-r--r-- 1 root root 292671 Aug 3 2015 old_non_stack.cfg
-rw-r--r-- 1 root root 1226049 Jul 13 22:26 primary.cfg
-rw-r--r-- 1 admin admin 33 Mar 20 2015 pyshell.py
-rw-r--r-- 1 root root 443717 Feb 17 10:34 secondary.cfg
-rw-r--r-- 1 admin admin 344 Mar 15 2015 setup.xsf
-rw-r--r-- 1 admin admin 3454 Mar 15 2015 shell.py
drwxr-xr-x 2 root root 1024 Jul 14 08:10 vmt

1K-blocks Used Available Use%
181576 7648 173928 4%
* Leaf1.2 #
* Leaf1.2 #
* Leaf1.2 # sh memory

System Memory Information
-------------------------
Total DRAM (KB): 2097152
System (KB): 76264
User (KB): 364700
Free (KB): 1656188

GTM-P2G8KFN