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


  Search this Thread
Old 01-22-2013, 11:17 AM   #1
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?

Roman Suvorov.
Old 01-23-2013, 05:06 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,841

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


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 03:26 AM
eSata-- hot-swappable?? colbert Linux - Hardware 7 10-30-2008 01:47 PM
hot swappable esata drives cygnus-x1 Linux - Hardware 2 01-29-2008 12:41 PM
Hot Swappable USB devices vanwas Linux - Hardware 1 08-27-2004 11:50 PM
Linux on a CDROM/Floppy swappable machine dictatorofgoats Linux - General 10 07-07-2002 08:50 PM

All times are GMT -5. The time now is 09:08 AM.

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