Skip to contentSkip to conversation

Memory size issue

DISCUSSION Alexander Shiyan 2 participants 3 messages Jan 22, 2013

lore
Share & tools
lore
#0 lore raw

Hello.

I found a discrepancy between the size of memory in the system and report by meminfo . In the following example, the system registered 512M , but the  meminfo shows only 256M. Error or so and originally intended ?

[email protected]:/ devinfo mem0
resources:
num   : 0
name  : ram0
start : 0x90000000
size  : 0x20000000
driver: mem
bus: platform

no info available for mem0
no parameters available
[email protected]:/ meminfo
max system bytes =     245760
system bytes     =     245760
in use bytes     =     223200

---

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw
Quoted 17 lines · Alexander Shiyan

Hello.

I found a discrepancy between the size of memory in the system and report by meminfo.
In the following example, the system registered 512M, but the meminfo shows only 256M.
Error or so and originally intended?

[email protected]:/ devinfo mem0
resources:
num : 0
name : ram0
start : 0x90000000
size : 0x20000000
driver: mem
bus: platform

Quoted 6 lines

no info available for mem0
no parameters available
[email protected]:/ meminfo

max system bytes =     245760
system bytes     =     245760
in use bytes     =     223200

This is 240kiB, not 256MiB. As meminfo shows only the memory used by barebox, this is should not be the same as the SDRAM size.

Regards,
Jan

Signature · 10 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 25 lines · Alexander Shiyan
Quoted 17 lines

Hello.

I found a discrepancy between the size of memory in the system and report by meminfo.
In the following example, the system registered 512M, but the meminfo shows only 256M.
Error or so and originally intended?

[email protected]:/ devinfo mem0
resources:
num : 0
name : ram0
start : 0x90000000
size : 0x20000000
driver: mem
bus: platform

Quoted 6 lines

no info available for mem0
no parameters available
[email protected]:/ meminfo

max system bytes =     245760
system bytes     =     245760
in use bytes     =     223200
Quoted 2 lines

This is 240kiB, not 256MiB. As meminfo shows only the memory used by barebox, this is should not be the same as the SDRAM size.

Ahh, yes. Thanks.

---
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox