Discussion:
[Ltsp-discuss] swap -again!
Johan Kragsterman
2016-05-06 08:37:26 UTC
Permalink
Hi!


I tried asking a question about swap the other day, but nobody seems to answer...

So I try again:

There seems to be no swap configured for my fat clients, since it looks like this:

***@ltsp102:~$ sudo cat /proc/swaps
Filename
***@ltsp102:~$

Type Size Used Priority
***@ltsp102:~$ sudo free
total used free shared buff/cache available
Mem: 7582448 1976300 1930544 1416000 3675604 4099192
Swap: 0 0 0
***@ltsp102:~$


nbd-server is up and running, connections are established:

***@ltsp102:~$ netstat -tu | grep nbd
tcp 0 0 192.168.20.102:55232 server:nbd ESTABLISHED
tcp 0 0 192.168.20.102:33850 server:nbd CLOSE_WAIT
tcp 0 0 192.168.20.102:55366 server:nbd CLOSE_WAIT


System is an LTSP server KVM virtual machine on OmniOS with enough resources, and the fat clients are quad core celerons with 8 GB DDR3 memory. 8 GB is of coarse a lot, but there seem to be memory loss that causes reboot to login screen, or get the entire client to freeze, which forces a hard reboot.

I checked some other resources, if I should configure swap through ldm.conf, but since I didn't need that in 14.04, I don't understand why I should need it now...? There is no ldm.conf file in /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be default then.

Only thing I changed since 14.04 is that I now use another default GW, I don't go through the LTSP server anymore. But the server responds to the "server" ping in the client network, so I can't see that as a problem.

So I would really appreciate some input here...


Best regards from/Med vänliga hälsningar från

Johan Kragsterman

Capvert


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Alkis Georgopoulos
2016-05-07 18:23:12 UTC
Permalink
From http://manpages.ubuntu.com/lts.conf:

> NBD_SWAP
> boolean, default False
> Set this to True if you want to turn on NBD swap.
> If unspecified, it's automatically enabled for thin clients with
> less than 300 MB RAM and for fat clients with less than 800 MB RAM.

Your clients have more than 800 MB RAM, so they don't automatically get
a swap unless you specifically set NBD_SWAP=True in lts.conf.

Note that even if you set a swap, by default it's just 512 MB, so it
won't save you if you think that your 8 GB of RAM isn't enough and that
the problem is indeed lack of free memory...
...which I doubt. I'd suggest you look elsewhere for fixing the crashes,
e.g. Xorg/graphics drivers or kernel issues.

--
Alkis Georgopoulos
LTSP developer
Professional LTSP support: ***@gmail.com


On 06/05/2016 11:37 πμ, Johan Kragsterman wrote:
>
> Hi!
>
>
> I tried asking a question about swap the other day, but nobody seems to answer...
>
> So I try again:
>
> There seems to be no swap configured for my fat clients, since it looks like this:
>
> ***@ltsp102:~$ sudo cat /proc/swaps
> Filename
> ***@ltsp102:~$
>
> Type Size Used Priority
> ***@ltsp102:~$ sudo free
> total used free shared buff/cache available
> Mem: 7582448 1976300 1930544 1416000 3675604 4099192
> Swap: 0 0 0
> ***@ltsp102:~$
>
>
> nbd-server is up and running, connections are established:
>
> ***@ltsp102:~$ netstat -tu | grep nbd
> tcp 0 0 192.168.20.102:55232 server:nbd ESTABLISHED
> tcp 0 0 192.168.20.102:33850 server:nbd CLOSE_WAIT
> tcp 0 0 192.168.20.102:55366 server:nbd CLOSE_WAIT
>
>
> System is an LTSP server KVM virtual machine on OmniOS with enough resources, and the fat clients are quad core celerons with 8 GB DDR3 memory. 8 GB is of coarse a lot, but there seem to be memory loss that causes reboot to login screen, or get the entire client to freeze, which forces a hard reboot.
>
> I checked some other resources, if I should configure swap through ldm.conf, but since I didn't need that in 14.04, I don't understand why I should need it now...? There is no ldm.conf file in /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be default then.
>
> Only thing I changed since 14.04 is that I now use another default GW, I don't go through the LTSP server anymore. But the server responds to the "server" ping in the client network, so I can't see that as a problem.
>
> So I would really appreciate some input here...
>
>
> Best regards from/Med vänliga hälsningar från
>
> Johan Kragsterman
>
> Capvert
>


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP hel
Johan Kragsterman
2016-05-07 19:09:38 UTC
Permalink
Hi, Alkis!


-----Alkis Georgopoulos <***@gmail.com> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: Alkis Georgopoulos <***@gmail.com>
Datum: 2016-05-07 20:24
Ärende: Re: [Ltsp-discuss] swap -again!

 From http://manpages.ubuntu.com/lts.conf:

 > NBD_SWAP
 > boolean, default False
 > Set this to True if you want to turn on NBD swap.
 > If unspecified, it's automatically enabled for thin clients with
 > less than 300 MB RAM and for fat clients with less than 800 MB RAM.

Your clients have more than 800 MB RAM, so they don't automatically get
a swap unless you specifically set NBD_SWAP=True in lts.conf.



I already tried that, but it still look like this:

***@ltsp102:~$ sudo cat /proc/swaps
[sudo] password for admin:
Filename Type Size Used Priority
***@ltsp102:~$ free
total used free shared buff/cache available
Mem: 7582448 1802804 2236020 1461384 3543624 4224156
Swap: 0 0 0
***@ltsp102:~$


Shouldn't it show something here if swap was configured?





Note that even if you set a swap, by default it's just 512 MB, so it
won't save you if you think that your 8 GB of RAM isn't enough and that
the problem is indeed lack of free memory...
...which I doubt. I'd suggest you look elsewhere for fixing the crashes,
e.g. Xorg/graphics drivers or kernel issues.





Well, graphics drivers should be fine, since I ran the exact same hardware on 14.04, kernel issues I don't know about.

But I've seen a discussion about the authfile = /etc/ltsp/nbd-server.allow

People still complain about this, last post was 16.03.28. This file is refered to by the swap.conf, but doesn't not exist. Of coarse I can create it myself, but I don't actually know what to put in there...




--
Alkis Georgopoulos
LTSP developer
Professional LTSP support: ***@gmail.com


On 06/05/2016 11:37 &#960;&#956;, Johan Kragsterman wrote:
>
> Hi!
>
>
> I tried asking a question about swap the other day, but nobody seems to answer...
>
> So I try again:
>
> There seems to be no swap configured for my fat clients, since it looks like this:
>
> ***@ltsp102:~$ sudo cat /proc/swaps
> Filename
> ***@ltsp102:~$
>
> Type Size Used Priority
> ***@ltsp102:~$ sudo free
>                total        used        free      shared  buff/cache   available
> Mem:        7582448     1976300     1930544     1416000     3675604     4099192
> Swap:             0           0           0
> ***@ltsp102:~$
>
>
> nbd-server is up and running, connections are established:
>
> ***@ltsp102:~$ netstat -tu | grep nbd
> tcp        0      0 192.168.20.102:55232    server:nbd              ESTABLISHED
> tcp        0      0 192.168.20.102:33850    server:nbd              CLOSE_WAIT
> tcp        0      0 192.168.20.102:55366    server:nbd              CLOSE_WAIT
>
>
> System is an LTSP server KVM virtual machine on OmniOS with enough resources, and the fat clients are quad core celerons with 8 GB DDR3 memory. 8 GB is of coarse a lot, but there seem to be memory loss that causes reboot to login screen, or get the entire client to freeze, which forces a hard reboot.
>
> I checked some other resources, if I should configure swap through ldm.conf, but since I didn't need that in 14.04, I don't understand why I should need it now...? There is no ldm.conf file in /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be default then.
>
> Only thing I changed since 14.04 is that I now use another default GW, I don't go through the LTSP server anymore. But the server responds to the "server" ping in the client network, so I can't see that as a problem.
>
> So I would really appreciate some input here...
>
>
> Best regards from/Med vänliga hälsningar från
>
> Johan Kragsterman
>
> Capvert
>


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Jakob Unterwurzacher
2016-05-07 22:21:51 UTC
Permalink
Hi Johan, do you see out of memory messages in the kernel log?

On Sat, May 7, 2016 at 9:09 PM, Johan Kragsterman <
***@capvert.se> wrote:

>
> Hi, Alkis!
>
>
> -----Alkis Georgopoulos <***@gmail.com> skrev: -----
> Till: ltsp-***@lists.sourceforge.net
> Från: Alkis Georgopoulos <***@gmail.com>
> Datum: 2016-05-07 20:24
> Ärende: Re: [Ltsp-discuss] swap -again!
>
> From http://manpages.ubuntu.com/lts.conf:
>
> > NBD_SWAP
> > boolean, default False
> > Set this to True if you want to turn on NBD swap.
> > If unspecified, it's automatically enabled for thin clients with
> > less than 300 MB RAM and for fat clients with less than 800 MB RAM.
>
> Your clients have more than 800 MB RAM, so they don't automatically get
> a swap unless you specifically set NBD_SWAP=True in lts.conf.
>
>
>
> I already tried that, but it still look like this:
>
> ***@ltsp102:~$ sudo cat /proc/swaps
> [sudo] password for admin:
> Filename Type Size Used
> Priority
> ***@ltsp102:~$ free
> total used free shared buff/cache
> available
> Mem: 7582448 1802804 2236020 1461384 3543624
> 4224156
> Swap: 0 0 0
> ***@ltsp102:~$
>
>
> Shouldn't it show something here if swap was configured?
>
>
>
>
>
> Note that even if you set a swap, by default it's just 512 MB, so it
> won't save you if you think that your 8 GB of RAM isn't enough and that
> the problem is indeed lack of free memory...
> ...which I doubt. I'd suggest you look elsewhere for fixing the crashes,
> e.g. Xorg/graphics drivers or kernel issues.
>
>
>
>
>
> Well, graphics drivers should be fine, since I ran the exact same hardware
> on 14.04, kernel issues I don't know about.
>
> But I've seen a discussion about the authfile = /etc/ltsp/nbd-server.allow
>
> People still complain about this, last post was 16.03.28. This file is
> refered to by the swap.conf, but doesn't not exist. Of coarse I can create
> it myself, but I don't actually know what to put in there...
>
>
>
>
> --
> Alkis Georgopoulos
> LTSP developer
> Professional LTSP support: ***@gmail.com
>
>
> On 06/05/2016 11:37 &#960;&#956;, Johan Kragsterman wrote:
> >
> > Hi!
> >
> >
> > I tried asking a question about swap the other day, but nobody seems to
> answer...
> >
> > So I try again:
> >
> > There seems to be no swap configured for my fat clients, since it looks
> like this:
> >
> > ***@ltsp102:~$ sudo cat /proc/swaps
> > Filename
> > ***@ltsp102:~$
> >
> > Type Size Used Priority
> > ***@ltsp102:~$ sudo free
> > total used free shared buff/cache
> available
> > Mem: 7582448 1976300 1930544 1416000 3675604
> 4099192
> > Swap: 0 0 0
> > ***@ltsp102:~$
> >
> >
> > nbd-server is up and running, connections are established:
> >
> > ***@ltsp102:~$ netstat -tu | grep nbd
> > tcp 0 0 192.168.20.102:55232 server:nbd
> ESTABLISHED
> > tcp 0 0 192.168.20.102:33850 server:nbd
> CLOSE_WAIT
> > tcp 0 0 192.168.20.102:55366 server:nbd
> CLOSE_WAIT
> >
> >
> > System is an LTSP server KVM virtual machine on OmniOS with enough
> resources, and the fat clients are quad core celerons with 8 GB DDR3
> memory. 8 GB is of coarse a lot, but there seem to be memory loss that
> causes reboot to login screen, or get the entire client to freeze, which
> forces a hard reboot.
> >
> > I checked some other resources, if I should configure swap through
> ldm.conf, but since I didn't need that in 14.04, I don't understand why I
> should need it now...? There is no ldm.conf file in
> /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be
> default then.
> >
> > Only thing I changed since 14.04 is that I now use another default GW, I
> don't go through the LTSP server anymore. But the server responds to the
> "server" ping in the client network, so I can't see that as a problem.
> >
> > So I would really appreciate some input here...
> >
> >
> > Best regards from/Med vÀnliga hÀlsningar från
> >
> > Johan Kragsterman
> >
> > Capvert
> >
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _____________________________________________________________________
> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help, try #ltsp channel on irc.freenode.net
>
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _____________________________________________________________________
> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help, try #ltsp channel on irc.freenode.net
>
Alkis Georgopoulos
2016-05-08 06:29:11 UTC
Permalink
On 08/05/2016 01:21 πμ, Jakob Unterwurzacher wrote:
> Shouldn't it show something here if swap was configured?

It's possible that your lts.conf isn't in the right place or has a
syntax error etc etc.

***@ltsp102:~$ grep -r NBD_SWAP /var/cache/ltsp
on the client should tell you if it is so.

> Well, graphics drivers should be fine, since I ran the exact
> same hardware on 14.04, kernel issues I don't know about.

I do have clients that work on 12.04, crash on 14.04, work on 16.04 etc,
due to changes in graphics drivers. Same goes for the kernel.

> But I've seen a discussion about the authfile =
/etc/ltsp/nbd-server.allow

That's not an issue unless you actually try to create and use that file,
at which time the bug appears.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For addition
Johan Kragsterman
2016-05-08 07:29:48 UTC
Permalink
Hi!


-----Alkis Georgopoulos <***@gmail.com> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: Alkis Georgopoulos <***@gmail.com>
Datum: 2016-05-08 08:31
Ärende: Re: [Ltsp-discuss] Ang: Re: swap -again!

On 08/05/2016 01:21 &#960;&#956;, Jakob Unterwurzacher wrote:
> Shouldn't it show something here if swap was configured?

It's possible that your lts.conf isn't in the right place or has a
syntax error etc etc.

***@ltsp102:~$ grep -r NBD_SWAP /var/cache/ltsp
on the client should tell you if it is so.





***@ltsp102:~$ sudo grep -r NBD_SWAP /var/cache/ltsp
***@ltsp102:~$


Shows nothing...does that mean there is no nbd swap, or does it mean there is an error in lts.conf? I only created lts.conf for this reason, so the only line that is in it is that for NBD_SWAP=True







 > Well, graphics drivers should be fine, since I ran the exact
 > same hardware on 14.04, kernel issues I don't know about.

I do have clients that work on 12.04, crash on 14.04, work on 16.04 etc,
due to changes in graphics drivers. Same goes for the kernel.




Graphic is intel SoC embedded celeron J1900. Shouldn't cause any problems, should it?





 > But I've seen a discussion about the authfile =
/etc/ltsp/nbd-server.allow

That's not an issue unless you actually try to create and use that file,
at which time the bug appears.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Alkis Georgopoulos
2016-05-08 17:37:03 UTC
Permalink
On 08/05/2016 10:29 πμ, Johan Kragsterman wrote:
>
> ***@ltsp102:~$ sudo grep -r NBD_SWAP /var/cache/ltsp
> ***@ltsp102:~$
>
> Shows nothing...does that mean there is no nbd swap, or
> does it mean there is an error in lts.conf? I only created
> lts.conf for this reason, so the only line that is in it
> is that for NBD_SWAP=True

It needs to be:

[Default]
NBD_SWAP=True

...but as everyone keeps saying, swap isn't the issue when you have 8 GB
RAM. :)


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Johan Kragsterman
2016-05-08 07:30:07 UTC
Permalink
Hi,Jakob!


Thanks for stepping in here...



-----Jakob Unterwurzacher <***@gmail.com> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: Jakob Unterwurzacher <***@gmail.com>
Datum: 2016-05-08 00:23
Ärende: Re: [Ltsp-discuss] Ang: Re: swap -again!

Hi Johan, do you see out of memory messages in the kernel log?



I can't say I do, but these are some msg I got:

May 7 19:13:48 ltsp102 kernel: [90371.938999] metacity[29159]: segfault at 16b1000 ip 00007f2e5728f208 sp 00007fff859af250 error 4 in libcairo.so.2.11400.6[7f2e5722c000+10e000]
May 7 19:13:48 ltsp102 gnome-session-binary[29107]: Unrecoverable failure in required component metacity.desktop
May 7 19:13:53 ltsp102 kernel: [90377.420913] block nbd9: NBD_DISCONNECT
May 7 19:13:53 ltsp102 kernel: [90377.422049] block nbd9: Receive control failed (result -32)
May 7 19:14:19 ltsp102 gnome-session-binary[8610]: Entering running state


Another strange thing I got is that another machine with the exact same hardware is freezing, so that one needs to be hard-rebooted, while the one I mainly use is rebooting to login screen.

Regards Johan










On Sat, May 7, 2016 at 9:09 PM, Johan Kragsterman <***@capvert.se> wrote:

Hi, Alkis!


-----Alkis Georgopoulos <***@gmail.com> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: Alkis Georgopoulos <***@gmail.com>
Datum: 2016-05-07 20:24
Ärende: Re: [Ltsp-discuss] swap -again!

 From http://manpages.ubuntu.com/lts.conf:

 > NBD_SWAP
 > boolean, default False
 > Set this to True if you want to turn on NBD swap.
 > If unspecified, it's automatically enabled for thin clients with
 > less than 300 MB RAM and for fat clients with less than 800 MB RAM.

Your clients have more than 800 MB RAM, so they don't automatically get
a swap unless you specifically set NBD_SWAP=True in lts.conf.



I already tried that, but it still look like this:

***@ltsp102:~$ sudo cat /proc/swaps
[sudo] password for admin:
Filename                                Type            Size    Used    Priority
***@ltsp102:~$ free
              total        used        free      shared  buff/cache   available
Mem:        7582448     1802804     2236020     1461384     3543624     4224156
Swap:             0           0           0
***@ltsp102:~$


Shouldn't it show something here if swap was configured?





Note that even if you set a swap, by default it's just 512 MB, so it
won't save you if you think that your 8 GB of RAM isn't enough and that
the problem is indeed lack of free memory...
...which I doubt. I'd suggest you look elsewhere for fixing the crashes,
e.g. Xorg/graphics drivers or kernel issues.





Well, graphics drivers should be fine, since I ran the exact same hardware on 14.04, kernel issues I don't know about.

But I've seen a discussion about the authfile = /etc/ltsp/nbd-server.allow

People still complain about this, last post was 16.03.28. This file is refered to by the swap.conf, but doesn't not exist. Of coarse I can create it myself, but I don't actually know what to put in there...




--
Alkis Georgopoulos
LTSP developer
Professional LTSP support: ***@gmail.com


On 06/05/2016 11:37 &#960;&#956;, Johan Kragsterman wrote:
>
> Hi!
>
>
> I tried asking a question about swap the other day, but nobody seems to answer...
>
> So I try again:
>
> There seems to be no swap configured for my fat clients, since it looks like this:
>
> ***@ltsp102:~$ sudo cat /proc/swaps
> Filename
> ***@ltsp102:~$
>
> Type  Size    Used    Priority
> ***@ltsp102:~$ sudo free
>                total        used        free      shared  buff/cache   available
> Mem:        7582448     1976300     1930544     1416000     3675604     4099192
> Swap:             0           0           0
> ***@ltsp102:~$
>
>
> nbd-server is up and running, connections are established:
>
> ***@ltsp102:~$ netstat -tu | grep nbd
> tcp        0      0 192.168.20.102:55232    server:nbd              ESTABLISHED
> tcp        0      0 192.168.20.102:33850    server:nbd              CLOSE_WAIT
> tcp        0      0 192.168.20.102:55366    server:nbd              CLOSE_WAIT
>
>
> System is an LTSP server KVM virtual machine on OmniOS with enough resources, and the fat clients are quad core celerons with 8 GB DDR3 memory. 8 GB is of coarse a lot, but there seem to be memory loss that causes reboot to login screen, or get the entire client to freeze, which forces a hard reboot.
>
> I checked some other resources, if I should configure swap through ldm.conf, but since I didn't need that in 14.04, I don't understand why I should need it now...? There is no ldm.conf file in /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be default then.
>
> Only thing I changed since 14.04 is that I now use another default GW, I don't go through the LTSP server anymore. But the server responds to the "server" ping in the client network, so I can't see that as a problem.
>
> So I would really appreciate some input here...
>
>
> Best regards from/Med vänliga hälsningar från
>
> Johan Kragsterman
>
> Capvert
>


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Jakob Unterwurzacher
2016-05-08 10:53:49 UTC
Permalink
Hi Johan, ok, if you do not get messages like this

> kernel: Out of memory: Kill process 9163 (mysqld) score 511 or sacrifice child

you are not running out of memory.

But this looks like it could be it:
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/1573478/
And there even seems to be a fix already in xenial-proposed.

Best regards,
Jakob

On 08.05.2016 09:30, Johan Kragsterman wrote:
>
> Hi,Jakob!
>
>
> Thanks for stepping in here...
>
>
>
> -----Jakob Unterwurzacher <***@gmail.com> skrev: -----
> Till: ltsp-***@lists.sourceforge.net
> Från: Jakob Unterwurzacher <***@gmail.com>
> Datum: 2016-05-08 00:23
> Ärende: Re: [Ltsp-discuss] Ang: Re: swap -again!
>
> Hi Johan, do you see out of memory messages in the kernel log?
>
>
>
> I can't say I do, but these are some msg I got:
>
> May 7 19:13:48 ltsp102 kernel: [90371.938999] metacity[29159]: segfault at 16b1000 ip 00007f2e5728f208 sp 00007fff859af250 error 4 in libcairo.so.2.11400.6[7f2e5722c000+10e000]
> May 7 19:13:48 ltsp102 gnome-session-binary[29107]: Unrecoverable failure in required component metacity.desktop
> May 7 19:13:53 ltsp102 kernel: [90377.420913] block nbd9: NBD_DISCONNECT
> May 7 19:13:53 ltsp102 kernel: [90377.422049] block nbd9: Receive control failed (result -32)
> May 7 19:14:19 ltsp102 gnome-session-binary[8610]: Entering running state
>
>
> Another strange thing I got is that another machine with the exact same hardware is freezing, so that one needs to be hard-rebooted, while the one I mainly use is rebooting to login screen.
>
> Regards Johan
>
>
>
>
>
>
>
>
>
>
> On Sat, May 7, 2016 at 9:09 PM, Johan Kragsterman <***@capvert.se> wrote:
>
> Hi, Alkis!
>
>
> -----Alkis Georgopoulos <***@gmail.com> skrev: -----
> Till: ltsp-***@lists.sourceforge.net
> Från: Alkis Georgopoulos <***@gmail.com>
> Datum: 2016-05-07 20:24
> Ärende: Re: [Ltsp-discuss] swap -again!
>
> From http://manpages.ubuntu.com/lts.conf:
>
> > NBD_SWAP
> > boolean, default False
> > Set this to True if you want to turn on NBD swap.
> > If unspecified, it's automatically enabled for thin clients with
> > less than 300 MB RAM and for fat clients with less than 800 MB RAM.
>
> Your clients have more than 800 MB RAM, so they don't automatically get
> a swap unless you specifically set NBD_SWAP=True in lts.conf.
>
>
>
> I already tried that, but it still look like this:
>
> ***@ltsp102:~$ sudo cat /proc/swaps
> [sudo] password for admin:
> Filename Type Size Used Priority
> ***@ltsp102:~$ free
> total used free shared buff/cache available
> Mem: 7582448 1802804 2236020 1461384 3543624 4224156
> Swap: 0 0 0
> ***@ltsp102:~$
>
>
> Shouldn't it show something here if swap was configured?
>
>
>
>
>
> Note that even if you set a swap, by default it's just 512 MB, so it
> won't save you if you think that your 8 GB of RAM isn't enough and that
> the problem is indeed lack of free memory...
> ...which I doubt. I'd suggest you look elsewhere for fixing the crashes,
> e.g. Xorg/graphics drivers or kernel issues.
>
>
>
>
>
> Well, graphics drivers should be fine, since I ran the exact same hardware on 14.04, kernel issues I don't know about.
>
> But I've seen a discussion about the authfile = /etc/ltsp/nbd-server.allow
>
> People still complain about this, last post was 16.03.28. This file is refered to by the swap.conf, but doesn't not exist. Of coarse I can create it myself, but I don't actually know what to put in there...
>
>
>
>
> --
> Alkis Georgopoulos
> LTSP developer
> Professional LTSP support: ***@gmail.com
>
>
> On 06/05/2016 11:37 &#960;&#956;, Johan Kragsterman wrote:
>>
>> Hi!
>>
>>
>> I tried asking a question about swap the other day, but nobody seems to answer...
>>
>> So I try again:
>>
>> There seems to be no swap configured for my fat clients, since it looks like this:
>>
>> ***@ltsp102:~$ sudo cat /proc/swaps
>> Filename
>> ***@ltsp102:~$
>>
>> Type Size Used Priority
>> ***@ltsp102:~$ sudo free
>> total used free shared buff/cache available
>> Mem: 7582448 1976300 1930544 1416000 3675604 4099192
>> Swap: 0 0 0
>> ***@ltsp102:~$
>>
>>
>> nbd-server is up and running, connections are established:
>>
>> ***@ltsp102:~$ netstat -tu | grep nbd
>> tcp 0 0 192.168.20.102:55232 server:nbd ESTABLISHED
>> tcp 0 0 192.168.20.102:33850 server:nbd CLOSE_WAIT
>> tcp 0 0 192.168.20.102:55366 server:nbd CLOSE_WAIT
>>
>>
>> System is an LTSP server KVM virtual machine on OmniOS with enough resources, and the fat clients are quad core celerons with 8 GB DDR3 memory. 8 GB is of coarse a lot, but there seem to be memory loss that causes reboot to login screen, or get the entire client to freeze, which forces a hard reboot.
>>
>> I checked some other resources, if I should configure swap through ldm.conf, but since I didn't need that in 14.04, I don't understand why I should need it now...? There is no ldm.conf file in /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be default then.
>>
>> Only thing I changed since 14.04 is that I now use another default GW, I don't go through the LTSP server anymore. But the server responds to the "server" ping in the client network, so I can't see that as a problem.
>>
>> So I would really appreciate some input here...
>>
>>
>> Best regards from/Med vänliga hälsningar från
>>
>> Johan Kragsterman
>>
>> Capvert
>>
>


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Johan Kragsterman
2016-05-08 11:02:13 UTC
Permalink
Hi, Jakob!



-----Jakob Unterwurzacher <***@gmail.com> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: Jakob Unterwurzacher <***@gmail.com>
Datum: 2016-05-08 12:55
Ärende: Re: [Ltsp-discuss] Ang: Re: Ang: Re: swap -again!

Hi Johan, ok, if you do not get messages like this

> kernel: Out of memory: Kill process 9163 (mysqld) score 511 or sacrifice child

you are not running out of memory.


No, I haven't seen anything like that...



But this looks like it could be it:
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/1573478/
And there even seems to be a fix already in xenial-proposed.

Best regards,
Jakob



You're saving my ass here, really!

Thanks a lot, I check this out....

Rgrds Johan






On 08.05.2016 09:30, Johan Kragsterman wrote:
>
> Hi,Jakob!
>
>
> Thanks for stepping in here...
>
>
>
> -----Jakob Unterwurzacher <***@gmail.com> skrev: -----
> Till: ltsp-***@lists.sourceforge.net
> Från: Jakob Unterwurzacher <***@gmail.com>
> Datum: 2016-05-08 00:23
> Ärende: Re: [Ltsp-discuss] Ang: Re: swap -again!
>
> Hi Johan, do you see out of memory messages in the kernel log?
>
>
>
> I can't say I do, but these are some msg I got:
>
> May  7 19:13:48 ltsp102 kernel: [90371.938999] metacity[29159]: segfault at 16b1000 ip 00007f2e5728f208 sp 00007fff859af250 error 4 in libcairo.so.2.11400.6[7f2e5722c000+10e000]
> May  7 19:13:48 ltsp102 gnome-session-binary[29107]: Unrecoverable failure in required component metacity.desktop
> May  7 19:13:53 ltsp102 kernel: [90377.420913] block nbd9: NBD_DISCONNECT
> May  7 19:13:53 ltsp102 kernel: [90377.422049] block nbd9: Receive control failed (result -32)
> May  7 19:14:19 ltsp102 gnome-session-binary[8610]: Entering running state
>
>
> Another strange thing I got is that another machine with the exact same hardware is freezing, so that one needs to be hard-rebooted, while the one I mainly use is rebooting to login screen.
>
> Regards Johan
>
>
>
>
>
>
>
>
>
>
> On Sat, May 7, 2016 at 9:09 PM, Johan Kragsterman <***@capvert.se> wrote:
>
> Hi, Alkis!
>
>
> -----Alkis Georgopoulos <***@gmail.com> skrev: -----
> Till: ltsp-***@lists.sourceforge.net
> Från: Alkis Georgopoulos <***@gmail.com>
> Datum: 2016-05-07 20:24
> Ärende: Re: [Ltsp-discuss] swap -again!
>
>  From http://manpages.ubuntu.com/lts.conf:
>
>  > NBD_SWAP
>  > boolean, default False
>  > Set this to True if you want to turn on NBD swap.
>  > If unspecified, it's automatically enabled for thin clients with
>  > less than 300 MB RAM and for fat clients with less than 800 MB RAM.
>
> Your clients have more than 800 MB RAM, so they don't automatically get
> a swap unless you specifically set NBD_SWAP=True in lts.conf.
>
>
>
> I already tried that, but it still look like this:
>
> ***@ltsp102:~$ sudo cat /proc/swaps
> [sudo] password for admin:
> Filename                                Type            Size    Used    Priority
> ***@ltsp102:~$ free
>               total        used        free      shared  buff/cache   available
> Mem:        7582448     1802804     2236020     1461384     3543624     4224156
> Swap:             0           0           0
> ***@ltsp102:~$
>
>
> Shouldn't it show something here if swap was configured?
>
>
>
>
>
> Note that even if you set a swap, by default it's just 512 MB, so it
> won't save you if you think that your 8 GB of RAM isn't enough and that
> the problem is indeed lack of free memory...
> ...which I doubt. I'd suggest you look elsewhere for fixing the crashes,
> e.g. Xorg/graphics drivers or kernel issues.
>
>
>
>
>
> Well, graphics drivers should be fine, since I ran the exact same hardware on 14.04, kernel issues I don't know about.
>
> But I've seen a discussion about the authfile = /etc/ltsp/nbd-server.allow
>
> People still complain about this, last post was 16.03.28. This file is refered to by the swap.conf, but doesn't not exist. Of coarse I can create it myself, but I don't actually know what to put in there...
>
>
>
>
> --
> Alkis Georgopoulos
> LTSP developer
> Professional LTSP support: ***@gmail.com
>
>
> On 06/05/2016 11:37 &#960;&#956;, Johan Kragsterman wrote:
>>
>> Hi!
>>
>>
>> I tried asking a question about swap the other day, but nobody seems to answer...
>>
>> So I try again:
>>
>> There seems to be no swap configured for my fat clients, since it looks like this:
>>
>> ***@ltsp102:~$ sudo cat /proc/swaps
>> Filename
>> ***@ltsp102:~$
>>
>> Type  Size    Used    Priority
>> ***@ltsp102:~$ sudo free
>>                total        used        free      shared  buff/cache   available
>> Mem:        7582448     1976300     1930544     1416000     3675604     4099192
>> Swap:             0           0           0
>> ***@ltsp102:~$
>>
>>
>> nbd-server is up and running, connections are established:
>>
>> ***@ltsp102:~$ netstat -tu | grep nbd
>> tcp        0      0 192.168.20.102:55232    server:nbd              ESTABLISHED
>> tcp        0      0 192.168.20.102:33850    server:nbd              CLOSE_WAIT
>> tcp        0      0 192.168.20.102:55366    server:nbd              CLOSE_WAIT
>>
>>
>> System is an LTSP server KVM virtual machine on OmniOS with enough resources, and the fat clients are quad core celerons with 8 GB DDR3 memory. 8 GB is of coarse a lot, but there seem to be memory loss that causes reboot to login screen, or get the entire client to freeze, which forces a hard reboot.
>>
>> I checked some other resources, if I should configure swap through ldm.conf, but since I didn't need that in 14.04, I don't understand why I should need it now...? There is no ldm.conf file in /var/lib/tftboot/"myclient", and it was not in 14.04, so this must all be default then.
>>
>> Only thing I changed since 14.04 is that I now use another default GW, I don't go through the LTSP server anymore. But the server responds to the "server" ping in the client network, so I can't see that as a problem.
>>
>> So I would really appreciate some input here...
>>
>>
>> Best regards from/Med vänliga hälsningar från
>>
>> Johan Kragsterman
>>
>> Capvert
>>
>


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net




------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Loading...