LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-22-2013, 10:17 AM   #1
windj007
LQ Newbie
 
Registered: Jun 2012
Location: Moscow, Russia
Distribution: Debian Wheezy
Posts: 2

Rep: Reputation: Disabled
Question Make process non-swappable


Dear Linux Users


I have a netbook with Debian Wheezy and KDE installed (but question is not related to distro).
The system hangs up when I launch a program (it's not important exactly which) that consumes much memory. It happens so because all other processes (including KDM) are swapped.

Because I use the netbook in GUI mode I want KDM to be responsive all the time (and I prefer this memory-hungry process to be swapped rather than KDM). It would be great to specify that some processes (e.g. kdm) should not be swapped at all.

The questions are:
1) does this problem annoys anybody except me?
2) maybe there is a common solution (and I could not find suitable keywords to search)
3) is there any possibility of specifying that process must not be swapped at all? Of course such a feature may lead to global out-of-memory if misconfigured (e.g. if too much processes have to always be in RAM).
4) can cgroups help with this?


Regards
Roman Suvorov.
 
Old 01-23-2013, 04:06 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,226

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
There are sysctls that control how memory is managed - but you'd need the foresight of the Oracles of Delphi to configure them correctly.
Maybe have a look at your swappiness setting, but cgroups certainly will allow you to control things as you want. See the kernel source tree for the best doco.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a swappable hard drive SimGuy Linux - Hardware 5 09-23-2011 02:26 AM
eSata-- hot-swappable?? colbert Linux - Hardware 7 10-30-2008 12:47 PM
hot swappable esata drives cygnus-x1 Linux - Hardware 2 01-29-2008 11:41 AM
Hot Swappable USB devices vanwas Linux - Hardware 1 08-27-2004 10:50 PM
Linux on a CDROM/Floppy swappable machine dictatorofgoats Linux - General 10 07-07-2002 07:50 PM


All times are GMT -5. The time now is 09:12 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 Google+: linuxquestions
Open Source Consulting | Domain Registration