Memory Showning only 2 GB instead of 4 GB in Slacware
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Memory Showning only 2 GB instead of 4 GB in Slacware
Dear All,
Please Help to sort out this issue.... When i installed the Slacware Linux it is Showing only 2 GB but the physical memory is For 4 GB and Also the BIOS Displays 4 GB.... Please help to sort out....
as far as I know, there is no programm lshw in slackware.
If you are running slackware-12.2 (the 32bit version) it is necessary to recompile the kernel with "memory higher than 4GB" enabled. You'll find it in the menuconfig in the category "processor type and features".
I'm sorry, I think I've answered not clear enough. Slackware in the 32bit-version is not able to deal with the whole amount of 4GB (4096MB) of RAM with the default huge-smp-kernel. This is because it is compiled with Highmem=4GB. With Highmem > 4GB it will deal with the whole memory.
The package is not available in Slackware. Yes, your right it is not part of 'bash'. If you want this on a Slackware OS then the package will have to built then installed. I don't see the reason to use a utility like 'lshw' on Slackware. If you want to see the memory information then;
i just gave my suggestion. i am not that familiar with linux. just started it on 2007. of course linux has many better options for any problem..
No one was debating you. It's just that distributions are different. Just because it's GNU/Linux kernel the OS can and usually is different on each. Yes, generally 'bash' is the default shell but the utilities for each distro can be varied. The basic shell is the same but added utilities to support the needs of each distribution is generally added. Hope that helps!
(This is a VERY generic explanation, not getting into exact reasons, which can get WAY beyond the OP's question. Just remember: It's just a quick and dirty of why this happens, NOT a be-all-end-all on the subject)
As the kernel is default compiled with the highmem switch off, the OS will only see UP TO 4GB, but since there is always overhead, etc, AND the 'most' it can handle is 4gb, the actual amount seems,to the OS at least, to be different. Due to this, the OS thinks the memory chip is bad, so it 'rejects' the one chip that is causing the 'errors' (And I'll bet you have 2 2gb sticks installed). So in this case, it will only 'see' one 2gb chip. The bios, not having this issue, will see entire 4gb.
If you had 4 1gb chips installed, you would see the OS reports that you only have 3gb.
If the option is set in the kernel for >4gb, this 'limitation' is removed.
You will also see this 'problem' with Windows XP, for something close to the same reasons. But the 'issue' is resolved with XPx64 and Vista-64.
Just do a kernel recompile (many threads/stickys in this forum), and you'll be fine
(This is a VERY generic explanation, not getting into exact reasons, which can get WAY beyond the OP's question. Just remember: It's just a quick and dirty of why this happens, NOT a be-all-end-all on the subject)
As the kernel is default compiled with the highmem switch off, the OS will only see UP TO 4GB, but since there is always overhead, etc, AND the 'most' it can handle is 4gb, the actual amount seems,to the OS at least, to be different. Due to this, the OS thinks the memory chip is bad, so it 'rejects' the one chip that is causing the 'errors' (And I'll bet you have 2 2gb sticks installed). So in this case, it will only 'see' one 2gb chip. The bios, not having this issue, will see entire 4gb.
If you had 4 1gb chips installed, you would see the OS reports that you only have 3gb.
If the option is set in the kernel for >4gb, this 'limitation' is removed.
You will also see this 'problem' with Windows XP, for something close to the same reasons. But the 'issue' is resolved with XPx64 and Vista-64.
Just do a kernel recompile (many threads/stickys in this forum), and you'll be fine
That's not exactly right. I have 2x2 Gb on my desktop, and slackware 12.2 and slackware x86 current sees 3.25 Gb. The OS won't reject the memory chip or think it's bad. Being on a 32 bits system, the total amount of virtual memory the OS will be able to use without enabling PAE in the kernel is 2^32-1 . In this you also have the video card memory.
If the OS only sees 2Gb from your 4Gb available, then you have problems with one of the memory slots or the sockets for the memory on the mainboard.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.