|00:04||Pacifica has joined #ltsp|
|01:21||Pacifica has quit IRC|
|01:36||alkisg has quit IRC|
|01:41||alkisg has joined #ltsp|
|02:12||map7_ has joined #ltsp|
|02:17||chupacabra has quit IRC|
|02:40||johnny has left #ltsp|
|02:41||johnny has joined #ltsp|
Hmmm when I login from an ltsp client, my ~/.profile isn't sourced...
|02:48||johnny has left #ltsp|
|02:48||johnny has joined #ltsp|
|02:51||johnny has left #ltsp|
|02:52||Gremble has joined #ltsp|
|02:52||alkisg has quit IRC|
|02:57||alkisg has joined #ltsp|
|03:26||alkisg has quit IRC|
|03:31||alkisg has joined #ltsp|
|03:32||Trixboxer has joined #ltsp|
|03:35||gorkhaan has quit IRC|
|03:40||alkisg has quit IRC|
|03:40||bobby_C has joined #ltsp|
|03:42||alkisg has joined #ltsp|
|03:45||bobby_C has quit IRC|
|03:45||gorkhaan has joined #ltsp|
|04:04||bobby_C has joined #ltsp|
|04:15||MorningSon has quit IRC|
|04:21||Gremble has quit IRC|
|04:27||bobby_C has quit IRC|
|04:48||alkisg has quit IRC|
|04:53||alkisg has joined #ltsp|
|05:02||alkisg has quit IRC|
|05:06||alkisg has joined #ltsp|
|06:09||indradg_ has quit IRC|
|06:09||gorkhaan has quit IRC|
|06:27||map7_ has quit IRC|
Is the lp:~ltsp-docwriters/ltsp/ltsp-docs-trunk going to be tagged with 5.2.5 as well?
|07:45||indradg_ has joined #ltsp|
|07:57||F-GT has quit IRC|
|08:14||F-GT has joined #ltsp|
Has anyone done extensive tests with nbd swapping? It seems to me that it's too unstable and it frequently crashes the clients, where if local swapping is used they never crash.
|08:45||bobby_C has joined #ltsp|
|08:46||gorkhaan has joined #ltsp|
|09:27||alkisg has quit IRC|
|09:34||alkisg has joined #ltsp|
|09:38||alkisg has quit IRC|
|09:42||komunista has joined #ltsp|
|09:48||alkisg has joined #ltsp|
|09:51||alkisg has quit IRC|
|09:59||alkisg has joined #ltsp|
Has anyone tried MOZ_DISABLE_IMAGE_OPTIMIZE=1 ./firefox in Lucid? I can't get it to work, firefox still caches pixmaps with it...
|10:28||alkisg has quit IRC|
|10:30||bobby_C has quit IRC|
|10:35||alkisg has joined #ltsp|
|10:52||alkisg has quit IRC|
|10:56||Trixboxer has quit IRC|
|10:57||alkisg has joined #ltsp|
Hmmm the default 64mb swap seems too low for firefox pixmaps, maybe nbd swap is ok after all - trying 512 mb now..
|11:05||mistik1 has quit IRC|
Yup, firefox uses the 100mb of it by just browsing google.com/images...
(firefox running on the server, not on the client)
|11:07||mistik1 has joined #ltsp|
|11:13||mistik1 has quit IRC|
|11:13||mistik1 has joined #ltsp|
alkisg: maybe this help you: http://slavino.sk/linux/ltsp/173-optimalizacia-prehliadacov
in slovak only
np, google translate in work... :)
my notes about FF settings
At least nbd swap seems to be stable, I was worried with all the constant crashes, but it appears that the default 64mb of swap is too low
alkisg: defaults 64 MB can be enough, if client has a lot of the own RAM
If it has a lot of RAM then no nbd swap is needed :)
But by running firefox on the server I got 200mb of ram usage on the client (pixmaps)
That's really too much :(
still it create one swap file per client?
There's a new "NBD_RAM_THRESHOlD" variable in lts.conf, if the client has more ram than that then it doesn't create one
(by default, NBD_SWAP=false, so no swap by default)
alkisg: I am suing clients with 256 MB RAM (-64 MB for VGA)
and only FF (iceweasel) is installed
komunista: right, then if you open 2 tabs on google.com/images, they'll probably hang...
Have you been seeing any crashes once in a while? E.g. once per week?
and I sometime check the used ram, but never grows more than 100 - 110 MB used
I have crashes, but without FF and only on two clients...
IMHO HW realted...
Openoffice uses pixmaps too
|11:20||chupacabra has joined #ltsp|
|11:21||mistik1 has quit IRC|
|11:21||mistik1 has joined #ltsp|
alkisg: my pupils uses OOo too(writer, calc and impress), without any problems (only impress animations are slow)
komunista: mine too - I'm just saying that if pixmaps exceed the available ram, then the client slows down alot,
and if they exceed the swap too, then the client hangs
I am using the RAM=80 option in lts.conf - I forgot exact name :-)
that usually prevents the client from crashing, but the apps do crash
uff, now I see - I don't use that (I switched from ubuntu to debian) ;-)
|11:29||* komunista is adding it :-)|
komunista: "lts.conf" :: http://manpages.ubuntu.com/lts.conf
Impress is using another 40M of RAM on the client... X should check the available RAM before using pixmaps :(
So anyway the bottom line is that nbd-swap is OK and 64MB of swap is not enough for my clients :)
(so xorg reached 300mb of ram usage on the client with firefox + impress open)
alkisg: if I do not forgot, then in Wednesday I can see amounth of the used RAM for OOo and FF together on clients
but I have plan - setting the cacti (with SNMP proxing via ltsp server) to graphing the clients
only one problem, I have this plan some weeks, but have no time for playing with this :-(
Yes it takes a lot of time as it depends on the sites you visit with firefox as well
E.g. there was a site which used 500 mb ram on the thin client (while firefox was still installed on the server)
3:1 it used flash too
|12:09||komunista has quit IRC|
|12:17||alkisg has quit IRC|
|12:20||alkisg has joined #ltsp|
|12:23||komunista has joined #ltsp|
|12:37||komunista has quit IRC|
|12:42||komunista has joined #ltsp|
|13:34||komunista has quit IRC|
|13:40||komunista has joined #ltsp|
|14:04||bobby_C has joined #ltsp|
|14:07||komunista has quit IRC|
|14:43||vagrantc has joined #ltsp|
Setting the ssh /proc/pid/oom_score to 15 gives much healthier crashes - Xorg exits with "resource temporarily unavailable" and no ghost processes are left for this user. Now to see where to put it so that its childs don't inherit the score...
|14:45||gorkhaan has quit IRC|
Ah it's the last one, no childs, nice...
|14:52||* vagrantc wonders what adventures alkisg is up to today|
Ah vagrantc congrats for the debian ltsp, it's quite good! Everything worked out of the box with a 128mb ram server and a 64mb ram client! :)
No need to add greek in ldm, already there, no need to remove nbd_proxy or compcache, everything fine on the first try :)
glad to hear!
|14:54||* alkisg spend the day thinking he had some driver problems with openchrome but it turned out to be the classic pixmaps problem, and nbd_swap=64mb was too little...|
With 512mb swap everything fine again
so using NBD swap?
i haven't really tested that much at all
I thought it had problems, but I've done extensive tests the last 2 hours, it's rock solid
Of course when the swap memory doesn't suffice then chaos emerges, that's why I'm looking at oom_adj now...
Setting the ssh oom_adj to 15 makes crashes much "healthier"
512mb of nbd swap sounds a lot
...so maybe we should add a "-o localcommand <change oom>" to the ssh already long line
Surfing with firefox on google.com/images and have 1 openoffice open resulted in 300 mb swap being used
(testing on an 128mb client)
(with no localapps of course)
vagrantc: how does this look? ssh localhost -o 'PermitLocalCommand=yes' -o 'LocalCommand=echo 15 > /proc/$PPID/oom_adj'
(need to be root for echo > oom_adj to work)
Can I add something like this to X95-run-x-session?
(with proper testing of course :))
do we use oom_adj anywhwere else?
`man proc` says it's available since Linux 2.6.11
seems like that should be done with nbd-client root or swap
I think the most important thing is killing the ssh session first
That way X closes gracefully, and the user processes exit
I don't think anything else would need to be killed or protected
wonder what's the difference between oom_adj and oom_score
The first is setting, the other is reading
|15:11||* alkisg puts up a web page to consistently crash thin clients... :D|
(ok for testing :D)
That line generates a list of images and an index.htm in the current folder which does crash firefox for me:
echo '<html><body>' > index.htm; i=100; while [ $i -lt 300 ]; do echo $i; echo "<img src='800x$i.jpg'><br>" >> index.htm; convert -size 800x$i radial-gradient:yellow 800x$i.jpg; i=$(($i+1)); done; echo '</body></html>' >> index.htm
With oom_adj the crash is clean, no ghost processes and the TC is stable after X restarts
Sending a mail to the devs list to sum it up, will commit if noone objects
|16:05||gorkhaan has joined #ltsp|
Hmmm maybe we should give ssh a lower score than 15, and give 15 to localapps instead
|16:09||* alkisg isn't using localapps and forgets about them :)|
i.e. localapps should be killed before killing the ssh connection?
|16:18||bobby_C has quit IRC|
So if a user runs a local firefox, then his session won't die
Just the local firefox should usually be enough
though isn't that the case as-is?
X gets a very high score and gets killed first
er, with your oom_adj
If we only set the ssh priority, then that would be killed first
|16:20||* vagrantc gets confused by high/low comparison, having no idea which direction they go|
oom_adj = 15 is the highest and it means "kill this one first"
so set them to 15 on localapps?
So e.g. localapps could go to 14, and ssh to 12
ah, you *want* the ssh session to die more easily, as that leads to a clean session shutdown?
but localapps could go first
Right. So, localapps die first, then if that's not enough ssh dies, and with it X exits too.
i think the $PPID variable is a bashism
though i may be thinking of something else
No it isn't but it didn't work when I put it in the script
It's defined by posix if I recall well
Maybe I wrote something wrong in the x95 script, will look at it another day, it's getting late here :)
alkisg: you might be getting the shell's PPID in that case, for example
rather than ssh's PPID
er, rather than ssh being the parent
|16:26||Mobe_ has joined #ltsp|
vagrantc: this works correctly though: ssh localhost -o 'PermitLocalCommand=yes' -o 'LocalCommand=echo $PPID>/tmp/the-pid' ps -ef|grep 'ssh localhost'; cat /tmp/the-pid
I.e. if I test it from a shell, it seems to work
Maybe I did something wrong when I tried to put it in the x95 script
|16:30||Mobe has quit IRC|
|16:36||alkisg has quit IRC|
|16:39||Mobe__ has joined #ltsp|
|16:39||pmatulis_ has joined #ltsp|
|16:40||elias_a_ has joined #ltsp|
|16:41||klausade has quit IRC|
|16:41||Mobe_ has quit IRC|
|16:41||pmatulis has quit IRC|
|16:41||pthswork has quit IRC|
|16:41||elias_a has quit IRC|
|16:41||pthswork has joined #ltsp|
|16:41||wwx has quit IRC|
|16:41||wwx has joined #ltsp|
|16:42||klausade has joined #ltsp|
|17:29||gorkhaan has quit IRC|
|17:49||johnny has joined #ltsp|
|19:24||F-GT has quit IRC|
|19:40||F-GT has joined #ltsp|
|20:22||rjune has joined #ltsp|
|20:56||johnny has left #ltsp|
|21:17||johnny has joined #ltsp|
|21:30||daya has joined #ltsp|
|22:06||johnny has left #ltsp|
|22:06||johnny has joined #ltsp|
|22:19||johnny has left #ltsp|
|22:19||johnny has joined #ltsp|
|23:06||alkisg has joined #ltsp|
|23:16||cyberorg has joined #ltsp|
|23:40||indradg_ has quit IRC|