Re: processes and swapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sukanto Ghosh wrote:

1. How to determine the number of processes in memory ?  (inside
kernel code, not shell : ps -ef | wc -l )

Add up all the processes with a non-zero RSS.

2. Is there any provision for swapping out entire process in linux (as
solaris has)  ?

Doing that is just not realistic any more on modern systems.
Over the past 15 years, memory sizes have increased by a factor
1000 while disk seek times were reduced by a factor 8 and disk
throughput has increased by a factor 20 or so.

Programs have also increased with the size of memory.

That means the latency involved with swapping a whole process
has increased by about a factor 10-100 in the last 15 years.

In short, whole process swapping is way too slow on modern
systems.

If no, then how to make sure that a process all of whose pages have
been swapped out is not scheduled again ? (may be by changing the
process-state)
And, how to later enable the process so that it gets scheduled ?

You can stop and continue processes from userspace, look into
SIGSTOP and SIGCONT.

--
All rights reversed.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux