LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-18-2009, 05:53 AM   #1
vijay_mechanical
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
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....

regards

S.Vijay
 
Old 08-18-2009, 05:59 AM   #2
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
try the command 'lshw'. how much memory does it show?
 
Old 08-18-2009, 06:08 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello together,

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".

Markus
 
Old 08-18-2009, 06:14 AM   #4
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
i think it doesnt come by default with bash. have to install.
lshw manpage
http://linux.die.net/man/1/lshw
 
Old 08-18-2009, 09:38 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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.

Markus
 
Old 08-18-2009, 10:17 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by mobinskariya View Post
i think it doesnt come by default with bash. have to install.
lshw manpage
http://linux.die.net/man/1/lshw
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;

Quote:
# cat /proc/meminfo
MemTotal: 1793196 kB
MemFree: 21392 kB
Buffers: 41056 kB
Cached: 46140 kB
SwapCached: 16816 kB
Active: 1224340 kB
Inactive: 461724 kB
Active(anon): 1197364 kB
Inactive(anon): 401576 kB
Active(file): 26976 kB
Inactive(file): 60148 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2008116 kB
SwapFree: 1643168 kB
Dirty: 112 kB
Writeback: 0 kB
AnonPages: 1593796 kB
Mapped: 12800 kB
Slab: 40752 kB
SReclaimable: 24492 kB
SUnreclaim: 16260 kB
PageTables: 19064 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2904712 kB
Committed_AS: 2362780 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 271084 kB
VmallocChunk: 34359466251 kB
DirectMap4k: 3776 kB
DirectMap2M: 1830912 kB
The OP has been answered with the need to setup the kernel properly to allow 'PAE'
 
Old 08-18-2009, 10:32 AM   #7
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
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..

Last edited by mobinskariya; 08-18-2009 at 10:35 AM.
 
Old 08-18-2009, 10:48 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by mobinskariya View Post
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!
 
Old 08-18-2009, 11:37 AM   #9
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
oh no.. you misunderstood me.. i took it in the right sense.. i was just saying that i am a newbie.
 
Old 08-18-2009, 12:45 PM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
As for WHY the OP is only seeing 2GB:

(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
 
Old 08-18-2009, 01:43 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

cwwilson721, your 'get it here' link is broken.
 
Old 08-18-2009, 05:36 PM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Yeah...Been broke. Old link...I may update it in...3-4 years? About the time M$ gets an OS that doesn't crash within 5 minutes of power-up...
 
Old 08-19-2009, 07:55 AM   #13
LordAnta
Member
 
Registered: Apr 2008
Location: Munich, Germany
Distribution: Slackware current
Posts: 128

Rep: Reputation: 18
Quote:
Originally Posted by cwwilson721 View Post
As for WHY the OP is only seeing 2GB:

(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.

@edit: a post from the forum: http://www.linuxquestions.org/questi...-limit-707762/

Last edited by LordAnta; 08-19-2009 at 08:02 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slacware 9.0 problems... Schizo265 Slackware 14 11-05-2007 11:11 PM
Slacware 11 noonmid27 Linux - Newbie 1 01-10-2007 10:13 PM
Slacware 11 noonmid27 Linux - Newbie 1 12-16-2006 12:36 AM
Plesk for Slacware 9.1 Dakkar Linux - Software 1 06-08-2004 01:48 PM
acpi problem (showning 0%) swoppe Fedora 2 01-13-2004 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration