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).
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
Hi John(s),
On Mo 27 Jun 2011 22:38:00 CEST "John A. Sullivan III" wrote:
[...]
nxagent/x2goagent is the NX/X2go equivalent to ,,X(org)''
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi John,
On Mo 27 Jun 2011 20:45:36 CEST John Williams wrote:
Does there exist anywhere a short description of the jobs that x2go starts when it is invoked, and what each does?
Not yet. I have started a wiki page and would love to see the
x2goserver package containing man pages for all the important scripts
and binaries:
http://wiki.x2go.org/x2goserver
Any help appreciated...
Currently I see:
x2gocleansessions (root, PPID 0)
-> daemon cleaning up stale sessions
x2goagent (user, PPID 1)
-> the NX based Xserver a session runs in. Probably re-nicing this might help.
x2goruncommand (user, PPID 0)
-> The script launching a specific command (e.g. gnome-session,
startkde, etc.)
ssh (.x2go) (user, PPID 0)
-> rev forwarding tunnel for audio
sshfs (.x2go) (user, PPID 0)
-> local folder sharing
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).
You may try to re-nice x2goagent and maybe the command executed by
x2goruncommand (does the nice value get inherited to child
processes???).
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On 2011-06-27 20:45, John Williams wrote:
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)
There should also be a sshd.....
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).
You should also check your memory. I the system is paging like hell, renicing might not help.
Cheers Morty
-- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen
Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : struebe@informatik.uni-erlangen.de WWW : http://www4.informatik.uni-erlangen.de/~morty