public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to tune kernel to swap more often (video ram swap)
@ 2006-02-05 10:04 Paweł Zadrąg
  2006-02-05 11:04 ` Marc Koschewski
  2006-02-05 11:10 ` [OT] " Eric Piel
  0 siblings, 2 replies; 5+ messages in thread
From: Paweł Zadrąg @ 2006-02-05 10:04 UTC (permalink / raw)
  To: linux-kernel

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...

What do You think about that mighty list ?

--
Chears,
zeddi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to tune kernel to swap more often (video ram swap)
  2006-02-05 10:04 How to tune kernel to swap more often (video ram swap) Paweł Zadrąg
@ 2006-02-05 11:04 ` Marc Koschewski
  2006-02-05 11:10 ` [OT] " Eric Piel
  1 sibling, 0 replies; 5+ messages in thread
From: Marc Koschewski @ 2006-02-05 11:04 UTC (permalink / raw)
  To: Pawe? Zadr?g; +Cc: linux-kernel

* Pawe? Zadr?g <p.zeddi@gmail.com> [2006-02-05 11:04:25 +0100]:

> 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...
> 
> What do You think about that mighty list ?

Try playing around with /proc/sys/vm/swappiness. If you google for
'/proc/sys/vm/swappiness' you may find solutions on swapping.

Marc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] How to tune kernel to swap more often (video ram swap)
  2006-02-05 10:04 How to tune kernel to swap more often (video ram swap) Paweł Zadrąg
  2006-02-05 11:04 ` Marc Koschewski
@ 2006-02-05 11:10 ` Eric Piel
  2006-02-05 11:17   ` Tomasz Torcz
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Piel @ 2006-02-05 11:10 UTC (permalink / raw)
  To: Pawe³ Zadr±g; +Cc: linux-kernel

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...
> 
> What do You think about that mighty list ?
Actually this list is not about Linux tuning. Please read post only 
about bugs and patches for the linux kernel.

Anyway, I guess what you are looking for is the "swappiness". For more 
info check 
http://www.brunolinux.com/06-Fine_Tuning_Your_System/Swappiness.html

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?

see you,
Eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] How to tune kernel to swap more often (video ram swap)
  2006-02-05 11:10 ` [OT] " Eric Piel
@ 2006-02-05 11:17   ` Tomasz Torcz
  2006-02-06  7:52     ` Helge Hafting
  0 siblings, 1 reply; 5+ messages in thread
From: Tomasz Torcz @ 2006-02-05 11:17 UTC (permalink / raw)
  To: Eric Piel; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

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@irc.-nie.spam-.pl    in the afternoon and evening." - Alan Cox


[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] How to tune kernel to swap more often (video ram swap)
  2006-02-05 11:17   ` Tomasz Torcz
@ 2006-02-06  7:52     ` Helge Hafting
  0 siblings, 0 replies; 5+ messages in thread
From: Helge Hafting @ 2006-02-06  7:52 UTC (permalink / raw)
  To: Tomasz Torcz; +Cc: Eric Piel, linux-kernel

Tomasz Torcz wrote:

>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
>  
>
Nice trick.  If you also have swapspace on disk, remember to
give the "mtd swap" higher priority in /etc/fstab.
That way, disk swapping will only happen when the mtd swap is full.

Helge Hafting

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-06  7:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-05 10:04 How to tune kernel to swap more often (video ram swap) Paweł Zadrąg
2006-02-05 11:04 ` Marc Koschewski
2006-02-05 11:10 ` [OT] " Eric Piel
2006-02-05 11:17   ` Tomasz Torcz
2006-02-06  7:52     ` Helge Hafting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox