On Sun, 2 Dec 2018 11:15:23 +0000, t...@xendistar.co.uk said:

> sudo grep checkswap /var/log/messages
> 
> Assuming that is correct it has not shown me anything.

OK, it should be creating an entry every 50 seconds, so something is
wrong. It may be that the message isn't going into /var/log/messages, so I
suggest you:

$ logger "test"

...to put an entry in whatever log file is configured, then:

$ ls -lrt /var/log

...to see which logfile(s) were last written to. Then you can verify that
the 'test' is there. That will be the logfile to check for the 'checkswap'
messages.

> I think what is happening is that swap disappear

Why do you think that? In 25+ years of messing around with Linux, I've
never seen that happen. 

OK, I've just ready your first mail again. I suggest you reboot your PC,
then check ("sudo swapon -s") that the swap is configured exactly how you
expect. If it is, run the periodic check Ralph suggested (as discussed
above). If it isn't configured exactly how you expect, you need to fix
that first. If you have trouble, start by posting the output of:

$ grep sw /etc/fstab

and

$ sudo dmesg | grep swap
-- 
Linux Tips:     https://www.tiger-computing.co.uk/category/techtips/

--
  Next meeting at *new* venue:  Bournemouth, Tuesday, 2018-12-04 20:00
  Check if you're replying to the list or the author
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to