LinuxQuestions.org
Visit Jeremy's Blog.
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 04-28-2006, 01:47 AM   #16
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87

You're welcome. One way or another I stumbled across sapphirecat's article, and I was lucky enough to bookmark it. Great info, no doubt
 
Old 04-28-2006, 03:30 AM   #17
danieldk
Member
 
Registered: Aug 2002
Posts: 150

Rep: Reputation: 15
BTW. There is another good reason for enabling high-memory support, or specifically PAE (< 64GB). Having PAE enabled makes it possible to use the NX bit on AMD64 and newer Intel processors. With this bit the kernel can make writable pages non-executable (and executable pages read-only), which helps protecting against buffer overflow exploits. If you have PAE enabled on a CPU that has the NX bit, you should see something like the following line in the kernel output:

Code:
NX (Execute Disable) protection: active
 
Old 04-29-2006, 10:46 AM   #18
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
That is a good link and not too many people know about the memory cap at less than a Gig. I just upgraded my Powerbook Pismo to 1 Gb of ram and /proc/meminfo was only reporting that I had just under 800 Mb of memory. So would 'free'... I recompiled for High Mem Support and now the kernel see's all 1008 Mb of ram.

It's very misleading implying that you only need to enable High Mem Support if you have over a Gig. More like over 800Mb.... I agree, this should be default. I was aware there would be a little overhead in doing so but it IS negligible. Not even enough to bother mentioning. I'd rather have my extra RAM...

Last edited by jong357; 04-29-2006 at 10:52 AM.
 
Old 04-29-2006, 03:40 PM   #19
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by jong357
That is a good link and not too many people know about the memory cap at less than a Gig. I just upgraded my Powerbook Pismo to 1 Gb of ram and /proc/meminfo was only reporting that I had just under 800 Mb of memory. So would 'free'... I recompiled for High Mem Support and now the kernel see's all 1008 Mb of ram.

It's very misleading implying that you only need to enable High Mem Support if you have over a Gig. More like over 800Mb.... I agree, this should be default. I was aware there would be a little overhead in doing so but it IS negligible. Not even enough to bother mentioning. I'd rather have my extra RAM...
By upgrading to kernel 2.6.16, you can have up to 1G (all of it) under LOWMEM. Previosly, this required a patch (e.g. Con Kolivas). Now there is no need for HIGHMEM just to utilize 1G.
 
Old 04-29-2006, 03:50 PM   #20
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Pat's kernels still assume a 486 as the smallest common denominator.
The fact that many geeks have high-end machines with tons of RAM or
64-Bit CPUs doesn't really warrant as 4GB RAM default for the kernel.


Cheers,
Tink
 
Old 04-29-2006, 04:13 PM   #21
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Hmmm. I am using 2.6.16.11 and only 800MB of it was recognized. Perhaps there was a specific option I over looked that I didn't enable. Altho, I think your implying that nothing needs to be done. Just use a 2.6.16 kernel? Didn't do the trick here. Was missing out on 200mb til I ticked High Mem.

A gig of RAM isn't alot these days. Alot of computers come with a gig or more from the factory. I wonder what the percentage of machines running Slackware are 'i486' with low mem as compared to more modern machines with a gig or more. Those would be some interesting statistics. I have a feeling the old machine running Slack is few and far inbetween compared to newer rigs running Slackware. Manufactures like Dell are selling computers dirt cheap nowadays. Most people I know with old boxes throw them away and get a new one for very little cost.

Still, it takes minimal effort to recompile a kernel. Generally speaking, the average Slackware user doesn't mind doing things him/her self... So I suppose the whole point is moot.
 
Old 04-29-2006, 04:42 PM   #22
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
A gig of RAM isn't alot these days. Alot of computers come with a gig or more from the factory. I wonder what the percentage of machines running Slackware are 'i486' with low mem as compared to more modern machines with a gig or more. Those would be some interesting statistics. I have a feeling the old machine running Slack is few and far inbetween compared to newer rigs running Slackware.
/me coughs ...
Even if that is the case, the 486, low-mem kernel will most likely
work on a new rig, and allow you to recompile a kernel that suits
your needs (and on my wives AMD64 a 2.6.16.9 recompile takes well
under 10 minutes). The other way around IT WON'T WORK.

And now stop being selfish. :P


Cheers,
Tink
 
Old 04-29-2006, 05:58 PM   #23
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by jong357
Hmmm. I am using 2.6.16.11 and only 800MB of it was recognized. Perhaps there was a specific option I over looked that I didn't enable. Altho, I think your implying that nothing needs to be done. Just use a 2.6.16 kernel?
Sorry, I should have been more clear. There is another option. First, select LOWMEM. Then, choose the correct memory split.

Code:
shilo@shilo2:~$ cat /boot/config-2.6.16.11 |grep -i highmem
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
Code:
shilo@shilo2:~$ cat /boot/config-2.6.16.11 |grep -i split
# CONFIG_VMSPLIT_3G is not set
CONFIG_VMSPLIT_3G_OPT=y
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_1G is not set
1G, LOWMEM.

Code:
shilo@shilo2:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          1010        876        133          0        164        482
-/+ buffers/cache:        230        780
Swap:          486          0        486
Sorry about the confusion.
 
Old 04-29-2006, 06:28 PM   #24
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Thanks for clarifying. I guess most of the confusion is that I'm usually on PPC... There is only one option available and that's
[*] High memory support

period... Good to know tho for x86.

Code:
[root@jaguar /usr/src/linux-2.6.16.11] cat .config |grep -i highmem
CONFIG_HIGHMEM=y
CONFIG_HIGHMEM_START=0xfe000000
[root@jaguar /usr/src/linux-2.6.16.11] cat .config |grep -i split
CONFIG_SPLIT_PTLOCK_CPUS=4
I was just thinking it would be convienent on some people if it was default. Actually, I could care less because I build everything myself.
 
Old 04-30-2006, 04:49 AM   #25
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Quote:
Originally Posted by J.W.
Check out Section 2 of this article regarding the mysterious 880Mg limit
thanks for this info - i had been wondering the same thing.. i have 1024 MB in this machine (2.x512) and it notes that i can only use around 850+or there abouts.
I had also chosen the 1GB< option as it said seemed from reading something else that i might suffer a performance hit if i choose the other option (unless i actually have 3GB or RAM or something)..
Being that i have way more ram (even at 880) than my system ever consumes i think i will keep the <1GB option on but it is nice to know the 'nitty gritty' =)
 
Old 04-30-2006, 04:56 AM   #26
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Quote:
Originally Posted by shilo
By upgrading to kernel 2.6.16, you can have up to 1G (all of it) under LOWMEM. Previosly, this required a patch (e.g. Con Kolivas). Now there is no need for HIGHMEM just to utilize 1G.
Shilo, are you able to elaborate as to why you pick the 3GB split.. ?
I also have 1GB ram but am on 2.6.15 - it reports 880MB too. i might go download .16 now and see how i go.. more fun and games =)
 
Old 04-30-2006, 09:25 AM   #27
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
Quote:
Originally Posted by -=Graz=-
thanks for this info - i had been wondering the same thing.. i have 1024 MB in this machine (2.x512) and it notes that i can only use around 850+or there abouts.
I had also chosen the 1GB< option as it said seemed from reading something else that i might suffer a performance hit if i choose the other option (unless i actually have 3GB or RAM or something)..
Being that i have way more ram (even at 880) than my system ever consumes i think i will keep the <1GB option on but it is nice to know the 'nitty gritty' =)
Just remember that one nice thing about linux is that is *does* actually *use* the memory you have installed, in some way or another (ever notice your "top" memory usage?).

I can understand that you may not be rendering videos or doing other memory-consumptive tasks, but, at least in my case, I opted (when I was using 32-bit kernel) for the highmem option because I *paid* for 1GB of RAM and didn't want to suffer a 12% loss in memory just because of kernel configuration.

Your mileage may vary and I understand if you don't want to enable it for performance reasons or otherwise.
 
Old 04-30-2006, 12:00 PM   #28
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by -=Graz=-
Shilo, are you able to elaborate as to why you pick the 3GB split.. ?
I also have 1GB ram but am on 2.6.15 - it reports 880MB too. i might go download .16 now and see how i go.. more fun and games =)
The 3G_OPT split is the only LOWMEM option that utilizes the full 1G of RAM. Download the latest kernel and look at the help when compiling (using "make xconfig" or the "?" under "make menuconfig". It's a new option in 2.6.16.
 
Old 04-30-2006, 12:08 PM   #29
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
It would be absurd to make it the default.

I have never, in my entire life, used a PC with over 512 MB of ram. There are many more like me. Besides, the PCs that DO have more than 800MB of ram are generally the ones that can compile a new kernel in less than 30 minutes. It makes more sense for the people with the newer machines to compile a kernel than for a person with an older machine to have to compile a kernel. The loss in performance IS noticeable on a machine with less than 800MB of ram, and those are the machines that would spend hours compiling a kernel to correct it.
 
Old 04-30-2006, 07:26 PM   #30
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
187807. yes i agree - it sux to lose 12% of something you paid for ...
I just downloaded the .16 kernel and have since re-compiled and all is looking great. =)
Im sure i will not notice any different but it is still cool getting the most out of what i have got...(or at least thinking i am as i can see it written on the screen). To date i dont think my page file has been used once..
* this is also the first machine i have had with more than 256mb ram - i really wanted a 'pimp' rig this time =)

Last edited by -=Graz=-; 04-30-2006 at 09:17 PM.
 
  


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
is high mem support in a 2.6 kernel advised against for 1GB of memory? hedpe Linux - General 2 09-06-2005 09:35 AM
High speed memory, linux kernel decompress error randyding Linux - Hardware 2 09-04-2005 08:08 PM
feature request fragger Slackware 2 08-25-2004 06:10 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
CDCOPY 1.04 feature request ? MasterC Linux - Software 11 10-20-2002 04:10 PM

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

All times are GMT -5. The time now is 08:36 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