Is there a way to tell kswapd that i wan't a particular process to get
shoved into swap?
I run a torrent client 24/7 (in many ways it would just be easier to
mirror a whole bunch of distro iso's, but oh well)..
Anyway, it tends to consume between 30 and 50% of my system's physical
memory, which wouldn't matter, except that it tends to push firefoxen
into swap, while nearly always staying in memory itself.
I can probably alter the torrent clients settings a bit to reign it in,
but honestly, the disk with my swap partition is pretty quick, and i
would think totally adequate to let it download/upload files from.
Is there some way of forcing this?
Cheers
Rich Healey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-24-2008, 02:09 PM
Ron Johnson
Force process to swap?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/24/08 01:34, Rich Healey wrote:
> Is there a way to tell kswapd that i wan't a particular process to get
> shoved into swap?
>
> I run a torrent client 24/7 (in many ways it would just be easier to
> mirror a whole bunch of distro iso's, but oh well)..
>
> Anyway, it tends to consume between 30 and 50% of my system's physical
> memory, which wouldn't matter, except that it tends to push firefoxen
> into swap, while nearly always staying in memory itself.
>
> I can probably alter the torrent clients settings a bit to reign it in,
> but honestly, the disk with my swap partition is pretty quick, and i
> would think totally adequate to let it download/upload files from.
>
> Is there some way of forcing this?
If your torrent client is staying in memory, but FF is being pushed
out, that means that -- since the swapper keeps what is needed *now*
and swaps what isn't needed -- that the torrent client is
continually doing more work than FF.
- --
Ron Johnson, Jr.
Jefferson LA USA
We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-24-2008, 03:09 PM
Hugo Vanwoerkom
Force process to swap?
Ron Johnson wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/24/08 01:34, Rich Healey wrote:
Is there a way to tell kswapd that i wan't a particular process to get
shoved into swap?
I run a torrent client 24/7 (in many ways it would just be easier to
mirror a whole bunch of distro iso's, but oh well)..
Anyway, it tends to consume between 30 and 50% of my system's physical
memory, which wouldn't matter, except that it tends to push firefoxen
into swap, while nearly always staying in memory itself.
I can probably alter the torrent clients settings a bit to reign it in,
but honestly, the disk with my swap partition is pretty quick, and i
would think totally adequate to let it download/upload files from.
Is there some way of forcing this?
If your torrent client is staying in memory, but FF is being pushed
out, that means that -- since the swapper keeps what is needed *now*
and swaps what isn't needed -- that the torrent client is
continually doing more work than FF.
An improvement to swapping:
http://ck.wikia.com/wiki/SwapPrefetch
http://en.wikipedia.org/wiki/Paging
Hugo
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-24-2008, 04:06 PM
Ron Johnson
Force process to swap?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/24/08 10:09, Hugo Vanwoerkom wrote:
> Ron Johnson wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 04/24/08 01:34, Rich Healey wrote:
>>> Is there a way to tell kswapd that i wan't a particular process to get
>>> shoved into swap?
>>>
>>> I run a torrent client 24/7 (in many ways it would just be easier to
>>> mirror a whole bunch of distro iso's, but oh well)..
>>>
>>> Anyway, it tends to consume between 30 and 50% of my system's physical
>>> memory, which wouldn't matter, except that it tends to push firefoxen
>>> into swap, while nearly always staying in memory itself.
>>>
>>> I can probably alter the torrent clients settings a bit to reign it in,
>>> but honestly, the disk with my swap partition is pretty quick, and i
>>> would think totally adequate to let it download/upload files from.
>>>
>>> Is there some way of forcing this?
>>
>> If your torrent client is staying in memory, but FF is being pushed
>> out, that means that -- since the swapper keeps what is needed *now*
>> and swaps what isn't needed -- that the torrent client is
>> continually doing more work than FF.
>>
>
> An improvement to swapping:
>
> http://ck.wikia.com/wiki/SwapPrefetch
Is this in the mainline?
> http://en.wikipedia.org/wiki/Paging
I use "swap" in the generic sense, but really mean "page". Does
Linux even *do* process swapping?
- --
Ron Johnson, Jr.
Jefferson LA USA
We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-30-2008, 03:04 AM
"Douglas A. Tutty"
Force process to swap?
On Thu, Apr 24, 2008 at 11:06:25AM -0500, Ron Johnson wrote:
> On 04/24/08 10:09, Hugo Vanwoerkom wrote:
> > Ron Johnson wrote:
> >> On 04/24/08 01:34, Rich Healey wrote:
>
> > An improvement to swapping:
> >
> > http://ck.wikia.com/wiki/SwapPrefetch
>
> Is this in the mainline?
>
> > http://en.wikipedia.org/wiki/Paging
>
> I use "swap" in the generic sense, but really mean "page". Does
> Linux even *do* process swapping?
I've never seen Linux swap out idle processes.
Doug.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-30-2008, 03:28 AM
Ron Johnson
Force process to swap?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/29/08 22:04, Douglas A. Tutty wrote:
> On Thu, Apr 24, 2008 at 11:06:25AM -0500, Ron Johnson wrote:
>> On 04/24/08 10:09, Hugo Vanwoerkom wrote:
>>> Ron Johnson wrote:
>>>> On 04/24/08 01:34, Rich Healey wrote:
> >
>>> An improvement to swapping:
>>>
>>> http://ck.wikia.com/wiki/SwapPrefetch
>> Is this in the mainline?
>>
>>> http://en.wikipedia.org/wiki/Paging
>> I use "swap" in the generic sense, but really mean "page". Does
>> Linux even *do* process swapping?
>
> I've never seen Linux swap out idle processes.
I'm surprised. Seems to me that an idle process and it's allocated
memory would be the *perfect* candidates to be swapped out. And
anthropomorphized vm systems might say, "I need RAM, and you're
5,000 pages are the least recently used, so I'll just push you on
out to disk to make room for actively used data."
- --
Ron Johnson, Jr.
Jefferson LA USA
We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-30-2008, 02:40 PM
"Douglas A. Tutty"
Force process to swap?
On Tue, Apr 29, 2008 at 10:28:53PM -0500, Ron Johnson wrote:
> On 04/29/08 22:04, Douglas A. Tutty wrote:
> > On Thu, Apr 24, 2008 at 11:06:25AM -0500, Ron Johnson wrote:
> >> On 04/24/08 10:09, Hugo Vanwoerkom wrote:
> >>> Ron Johnson wrote:
> >>>> On 04/24/08 01:34, Rich Healey wrote:
> >>> http://en.wikipedia.org/wiki/Paging
> >> I use "swap" in the generic sense, but really mean "page". Does
> >> Linux even *do* process swapping?
> >
> > I've never seen Linux swap out idle processes.
>
> I'm surprised. Seems to me that an idle process and it's allocated
> memory would be the *perfect* candidates to be swapped out. And
> anthropomorphized vm systems might say, "I need RAM, and you're
> 5,000 pages are the least recently used, so I'll just push you on
> out to disk to make room for actively used data."
Sure it would make sense; other Unix's do, but I've never seen Linux
swap out, e.g. idle gettys or bash, or even idle exim4s (which would
make sense for a dial-up box that only uses exim during daily email
checks and cron runs).
Doug.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-30-2008, 03:01 PM
Ron Johnson
Force process to swap?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/30/08 09:40, Douglas A. Tutty wrote:
> On Tue, Apr 29, 2008 at 10:28:53PM -0500, Ron Johnson wrote:
>> On 04/29/08 22:04, Douglas A. Tutty wrote:
>>> On Thu, Apr 24, 2008 at 11:06:25AM -0500, Ron Johnson wrote:
>>>> On 04/24/08 10:09, Hugo Vanwoerkom wrote:
>>>>> Ron Johnson wrote:
>>>>>> On 04/24/08 01:34, Rich Healey wrote:
>>>>> http://en.wikipedia.org/wiki/Paging
>>>> I use "swap" in the generic sense, but really mean "page". Does
>>>> Linux even *do* process swapping?
>>> I've never seen Linux swap out idle processes.
>> I'm surprised. Seems to me that an idle process and it's allocated
>> memory would be the *perfect* candidates to be swapped out. And
>> anthropomorphized vm systems might say, "I need RAM, and you're
>> 5,000 pages are the least recently used, so I'll just push you on
>> out to disk to make room for actively used data."
>
> Sure it would make sense; other Unix's do, but I've never seen Linux
> swap out, e.g. idle gettys or bash, or even idle exim4s (which would
> make sense for a dial-up box that only uses exim during daily email
> checks and cron runs).
Hmmm, I see the communication disconnect. You are correct that it
won't swap out whole processes in one fell swoop. But an idle
process on a memory-constrained system could *effectively* see
itself swapped out a few pages at a time, as the kernel sees that
those pages are haven't been used in a while.
- --
Ron Johnson, Jr.
Jefferson LA USA
We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)