Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-03-2014, 11:50 AM
|
#1
|
LQ Newbie
Registered: Oct 2014
Posts: 8
Rep:
|
How can i determine memory size and number of physical pages with this info.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000dfcbefff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000dfcbf000-0x00000000dfdbefff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000dfdbf000-0x00000000dfebefff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x00000000dfebf000-0x00000000dfef4fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000dfef5000-0x00000000dfefffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000dff00000-0x00000000dfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000ffe00000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000206ffffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000207000000-0x000000021effffff] reserved
|
|
|
10-03-2014, 12:24 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Rep:
|
0x000000021effffff is 9,110,028,287 bytes divided by 1024 is 8,896,511KB divided by 1024 is 8687MB divided by 1024 is 8GB.
Pages are usually (but not always) 4096 bytes (it is hardware dependent). Use "$ getconf PAGESIZE" or perhaps "$ getconf PAGE_SIZE" to confirm.
|
|
1 members found this post helpful.
|
10-03-2014, 12:49 PM
|
#3
|
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286
|
Memory size (for practical purposes) is just the lines marked "usable". The highest physical address (21effffff) is not an indication of memory size.
Truncating to whole pages in hex:
9f-0 + dfcbf-100 + dff00-dfef5 + 207000-100000 = 1E6C69
which is 1993833 4K pages
which is 7788.41 MB
|
|
1 members found this post helpful.
|
10-03-2014, 01:00 PM
|
#4
|
LQ Newbie
Registered: Oct 2014
Posts: 8
Original Poster
Rep:
|
Quote:
Originally Posted by bulliver
0x000000021effffff is 9,110,028,287 bytes divided by 1024 is 8,896,511KB divided by 1024 is 8687MB divided by 1024 is 8GB.
Pages are usually (but not always) 4096 bytes (it is hardware dependent). Use "$ getconf PAGESIZE" or perhaps "$ getconf PAGE_SIZE" to confirm.
|
Excellent! thanks. both getconf PAGESIZE & getconf PAGE_SIZE returned 4096. How do you determine which line to calculate? I thought
[mem 0x0000000000100000-0x00000000dfcbefff]=3754684415 was where my memory is determined. I have 2x4 and free -m gives Mem: 7592 so 3754684415 x 2=7,509,368,830
|
|
|
10-03-2014, 01:32 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Rep:
|
I just used the highest memory address for my figures. As johnsfine mentioned, not all of it is usable.
|
|
|
All times are GMT -5. The time now is 06:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|