Re: [OT] How to tune kernel to swap more often (video ram swap)

From: Tomasz Torcz
Date: Sun Feb 05 2006 - 06:16:39 EST


On Sun, Feb 05, 2006 at 12:10:02PM +0100, Eric Piel wrote:
> 05.02.2006 11:04, Paweł Zadrąg wrote/a écrit:
> >Yo...
> >
> >In normal case, using harddisk as a swap space i should ask how to cut
> >down swapping, or make swapping when idle, etc... My case is a little
> >bit diffrent... I have a 256MB video card, while 240MB of it is used
> >as a swap space. And the question is: how to tune kernel to swap more
> >often. I known swapped memory must be copied back to ram before beeing
> >used, so i'm looking for a reasonable tunning values...
>
> Am I correctly understanding that you are using your video card memory
> as a place to put swap? This sounds quite cool, how have you done this?
> Is there a driver which can report the video ram as a block device?

It's an old trick with MTD devices:
http://hedera.linuxnews.pl/_news/2002/09/03/_long/1445.html

--
Tomasz Torcz "Funeral in the morning, IDE hacking
zdzichu@xxxxxxxxxxxxxxxxx in the afternoon and evening." - Alan Cox

Attachment: pgp00000.pgp
Description: PGP signature