WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ramzswap and shutdown  (Read 16045 times)

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
ramzswap and shutdown
« on: April 11, 2011, 09:04:35 PM »
I have the following phenomenon on my notebook:

If swap was used during work, I can not shutdown the computer. It hangs during shutdown - the screen still shows the FLWM - cursor and keyboard are frozen - sometimes the keyboard LED are flashing (but not always).

If ramzswap is disabled with boot code "nozswap" and so the "regular" swap partition is used (in my case: /dev/sda2), all works well.

Does this sound familiar?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ramzswap and shutdown
« Reply #1 on: April 11, 2011, 09:35:16 PM »
Could you be more exact about which LED is/are flashing?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: ramzswap and shutdown
« Reply #2 on: April 11, 2011, 10:50:03 PM »
Could you be more exact about which LED is/are flashing?

"Caps Lock" and "Scroll Lock"
« Last Edit: April 11, 2011, 10:53:23 PM by TaoTePuh »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ramzswap and shutdown
« Reply #3 on: April 11, 2011, 11:08:55 PM »
AFAIK, flashing CapsLock is indication for kernel panic.   :-\
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: ramzswap and shutdown
« Reply #4 on: April 12, 2011, 01:00:09 AM »
AFAIK, flashing CapsLock is indication for kernel panic.   :-\

Kernel panic? Yikes! Maybe there is a HAL 9000 inside my notebook which is fighting against shut down? Am I in danger? Should I change my identity? Okay, call me Bowman ...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: ramzswap and shutdown
« Reply #5 on: April 12, 2011, 01:26:55 AM »
I'm sorry Dave, I can't do that.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: ramzswap and shutdown
« Reply #6 on: April 12, 2011, 02:16:43 AM »
.. 2, 3, 4 : There is a flower within my warm heart, Daisy, Daisy ...

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: ramzswap and shutdown
« Reply #7 on: April 12, 2011, 06:00:47 AM »
i can verify exactly the same problem some times

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: ramzswap and shutdown
« Reply #8 on: April 12, 2011, 06:07:28 AM »
Would help to have the dmesg output of it, if you can catch it.
The only barriers that can stop you are the ones you create yourself.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: ramzswap and shutdown
« Reply #9 on: April 12, 2011, 06:02:34 PM »
How to debug a system while it shuts down?
How to fetch dmesg during this time?

I thought I could place a few lines (like "dmesg > /foo/bar") in /sbin/poweroff, but this is not a script ...


EDIT: I tried syslogd, unfortunately without success. The last line that was logged is:
Code: [Select]
Apr 12 22:49:49 (none) daemon.info init: starting pid 8513, tty '': '/etc/init.d/rc.shutdown'
« Last Edit: April 12, 2011, 06:59:08 PM by TaoTePuh »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: ramzswap and shutdown
« Reply #10 on: April 13, 2011, 01:25:58 AM »
For example ssh to the system from a different box, and if it hangs on shutdown, see if you can still get dmesg from the ssh session.

Or shutdown from the cli instead of X with a bootcode of "debug", then you should see any errors on the console.
The only barriers that can stop you are the ones you create yourself.

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: ramzswap and shutdown
« Reply #11 on: April 13, 2011, 02:26:21 PM »
For example ssh to the system from a different box, and if it hangs on shutdown, see if you can still get dmesg from the ssh session.

Or shutdown from the cli instead of X with a bootcode of "debug", then you should see any errors on the console.

ssh
The ssh session is closed very soon after the poweroff command. At this time, there's nothing important logged in dmesg.

cli
If ramzswap was used during work, I can not switch to the cli. The system hangs immediately after the click on "Exit to Prompt" (with flashing "Caps Lock" LED).

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: ramzswap and shutdown
« Reply #12 on: April 13, 2011, 02:35:09 PM »
edit: Sorry, misread your post. You get a kernel panic just killing Xvesa? Does a VT switch also cause that?

If not, what happens if you kill Xvesa from a VT?
« Last Edit: April 13, 2011, 02:36:47 PM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ramzswap and shutdown
« Reply #13 on: April 13, 2011, 03:26:01 PM »
Well, the way it sounds now the topic might be a bit misleading if the symptoms are not exclusively particular to system shutdown.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: ramzswap and shutdown
« Reply #14 on: April 13, 2011, 05:14:29 PM »
edit: Sorry, misread your post. You get a kernel panic just killing Xvesa? Does a VT switch also cause that?

If not, what happens if you kill Xvesa from a VT?

The VT way I did not understand.

But with killing Xorg and "sudo poweroff" I have a result. With some effort, I could create a "screen copy". Now I just need someone who speaks that language ...
« Last Edit: August 15, 2021, 11:04:01 AM by Rich »