Linux: prevent VNC from swapping like mad

Posted by Weezy on Super User See other posts from Super User or by Weezy
Published on 2010-04-06T10:33:27Z Indexed on 2010/04/06 10:43 UTC
Read the original article Hit count: 423

Filed under:
|
|
|

I'm accessing a MacMini (with MacOS X 10.4) from my Linux machine using VNC and there's an issue that is driving me crazy...

My Linux machine has 4 GB of ram and I run a lot of various apps on it and I've got no issue at all. It's all snappy and don't hear the hard disk swapping/read/writing too often.

Now with VNC, the hard disk is swapping like mad... When I'm moving things on the OS X desktop.

So I was thinking of creating a ramdisk and forcing the temp VNC files to go into that ramdisk but the problem is I can't find any temp files.

I've attempted to do that:

#!/bin/bash

while [ true ]
do
    lsof | grep vnc
done

And eyeball parse the output to try to find some temp file: no luck.

The VNC version I'm using is this one:

 $ vncviewer -version

VNC Viewer Free Edition 4.1.1 for X - built Jan 30 2009 19:33:16
Copyright (C) 2002-2005 RealVNC Ltd.

No matter how much data is coming from the Mac, there should be plenty of memory (4 GB of ram) so there's really no reason to swap like crazy. This is driving me mad.

Any help as to how I could solve this problem is most welcome because this is literally driving me nuts.

© Super User or respective owner

Related posts about linux

Related posts about temporary-files