Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
I have a little script which registers all my dynamic IP's along with some stats of each install.
The memory is annoying me.
Code:
export TotalMem=`free -b | grep Mem | awk {'print $2'}`
if [ "$TotalMem" == "" ] ; then
export TotalMem=`cat /proc/meminfo | grep MemTotal | awk {'print $2'}`
fi
These commands report total memory linux sees. Not how much is installed. So I have three computers with 1G of ram. However they report anywhere between 1009.12 MBytes to 1012.60 MBytes
Is there anywhere to get a break down of the missing 12-15MB? Or get total memory installed?
Don't really care where it goes (bios, video, etc) just to get and nice consistent reporting system.
I'm also looking for something that would work on most to all distributions, even other unix based systems if possible (for vmware installed machines).
I read somewhere but can not find it now that the memory is different between all brands and will not read at what it is rated. In other words if you replace the memory with the same rated amount it will read different than what you have now.
it-etch:/etc# dmidecode -t memory
# dmidecode 2.8
SMBIOS 2.3 present.
Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Single-bit ECC
Maximum Capacity: 2 GB
Error Information Handle: Not Provided
Number Of Devices: 2
Handle 0x1100, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: DIMM_1
Bank Locator: Not Specified
Type: DDR
Type Detail: Synchronous
Speed: 533 MHz (1.9 ns)
Manufacturer: 7F98000000000000
Serial Number: A036F583
Asset Tag: 040703
Part Number: KHU006-QIA
Handle 0x1101, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: DIMM_3
Bank Locator: Not Specified
Type: DDR
Type Detail: Synchronous
Speed: 533 MHz (1.9 ns)
Manufacturer: FFFFFFFFFFFFFFFF
Serial Number: FFFFFFFF
Asset Tag: FFFFFF
Part Number:
If the PC is sharing System memory for Video or other tasks I don't know how to show that.. I don't have any systems that even do that to my knowledge.. that is more common with systems that have integrated video.
archtoad6 do not quote me on this but I am not sure on the intergrated video if there is a way, I believe that on an intel board the other day in bios I saw a setting on the video that said 'Auto (128 meg max)'. To me that sounds like there is no commitment, just a supply on demand.
Last edited by Larry Webb; 05-19-2008 at 11:44 AM.
W/o rebooting I can't say for sure, but I think several of my mobo's w/ on-board video do not have a BIOS setting for how much RAM they appropriate from the CPU. Besides, I'd like as way to check this w/o having to reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.