On Mon, 2011-06-27 at 11:45 -0700, John Williams wrote:
Has anyone experimented with 'nice' or 'ionice' to improve x2go responsiveness? If so, what x2go processes might benefit?
The linux server that I am running x2goserver on sometimes has high loads, both CPU and disk IO. However, there should be plenty of resources left, since never are all of the CPU cores maxed out, and the root filesystem is running on a fast SSD. Nevertheless, sometimes x2go responsivity will go to almost nothing for a few seconds.
So, I was thinking to try x2go with 'nice -n -10' and 'ionice -c 2 -n 0' or even 'ionice -c 1', but I am not sure how to go about that. Does there exist anywhere a short description of the jobs that x2go starts when it is invoked, and what each does? Currently I see:
x2gocleansessions (root, PPID 0) x2goagent (user, PPID 1) x2goruncommand (user, PPID 0) ssh (.x2go) (user, PPID 0) sshfs (.x2go) (user, PPID 0)
but I am not sure which are important to responsivity, and which scripts started which processes (so I can edit the scripts to insert 'nice' commands). <snip> I'm going to take a guess that x2gocleansessions, x2goruncommand, and sshfs are NOT what you are looking for. x2goagent, ssh, and perhaps X itself might be candidates but that is just my guess - John