LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 03-07-2003, 05:26 AM   #1
marvin
LQ Newbie
 
Registered: Mar 2001
Location: The Great White North
Distribution: slack, suse, gentoo? lfs?
Posts: 7

Rep: Reputation: 0
Question How to change kernel's system/user mem ratio?


I'm using 2.4.19 ( 'cause I'd heard there was an Ext3 bug in 2.4.20 ), and am using me machine as a desktop, only.

Therefore I want all resources devoted to my apps.

Yet, .. the kernel's using 400+MB for cache, and swapping-out my browser/wp/tuxcards/mozilla/etc. ALL the time, and this is VFA ( 'very' and 'annoying' are included in that acronese... )

I'd read, perhaps a year or two ( 3? ) ago, that database users needed to change the user vs. system memory usage ratio of linux to get it to /permit/ the database to use the resources for their intended purpose, and assumed that I'd be able to find that info ( patch? ) when I needed it, but...

go figure.. ( google, howtos, here, ... )

So.

Is there a /proc setting, a change-in-kernel-source-makefile ( or variable ), or ANYTHING that'll permit me to MAKE my machine be used for me, rather than for caching/swapping/thrashing??

swap 700MB used
11MB buffers
450MB cache ( out of 512MB? )

Having to wait for a half-minute, just because I added a bookmark to konq is /murder/.

this-all on
Ath 700 /
512MB SDRAM /
Raid 5 array, 3 drives, for my stuff /
( 2 gxp75's, so raid-5's /really/ necessary .. grumble )
Matrox G400 /
Slackware 8.1
 
Old 03-07-2003, 06:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,822

Rep: Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116Reputation: 1116
you're presumably thinking of PAM, which you can use to limit users allowed memory uasage, cpu time etc...

http://www.kernel.org/pub/linux/libs...-html/pam.html
http://www.linuxsecurity.com/tips/tip-13.html
 
Old 03-07-2003, 07:11 AM   #3
marvin
LQ Newbie
 
Registered: Mar 2001
Location: The Great White North
Distribution: slack, suse, gentoo? lfs?
Posts: 7

Original Poster
Rep: Reputation: 0
No. HOW DO I MAKE KERNEL RELEASE EVEN 50% TO USER-PROCESSES?

Kernel reserves most memory for system-processes, and for server/multi-user systems that makes most sense, but for desktop it sucks ****.

Kernel won't permit more than ( apparently ) 25% of RAM to be used by/for userspace processes, so MY APPS get SWAPPED while 75% of RAM is used for .. caching the fs?

*PAM* is a means of reducing user access to resources ( user-management ), but I'm talking about getting the kernel to release resources /for their intended purpose/, unlocking the RAM to the apps it's there to facilitate!

The kernel's built-in choice/ratio is DoS's ME, using my own system.

Win98 didn't do that ...
( but .. it was /really/ lame in other ways )
...

The reason I remembered the patch I'd read-about ( that changed the ratio of system / user memory, within the kernel ) is /because/ this's been an issue
( both for DB users, as noted in me original post, and for desktop single-user machines )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
with KERNEL's problem, system can't work demonlj Linux - General 5 11-21-2005 09:10 AM
change of MB,CPU, MEM on Suse 10 Pulp Linux - Hardware 2 10-27-2005 07:32 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
How do I change the cursors globaly for a user? and how do I change them in the E-WM? enigma Z Linux - Software 1 09-18-2004 03:59 PM


All times are GMT -5. The time now is 03:35 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration