LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-16-2009, 12:26 AM   #1
schmoopie
LQ Newbie
 
Registered: Sep 2004
Location: Matthews, NC
Distribution: Slackware 12.2
Posts: 4

Rep: Reputation: 0
Question How do I kill a process in KDE that has locked up my desktop?


Running Slack 12.2, KDE 3.5, Firefox 3.0.8. This seems to happen during firefox sessions. Once the problem happens the entire machine locks up and the hard drive starts thrashing. I end up having to power down the machine to get the system back up.

Ideally, I would like to be able to kill a process like Windows by using ctrl-alt-del, task manager, then end the runaway process. Can this be done in Slackware or does anyone have a answer to my locking up problem?

Thanks!
Shawn Anthony
ssanthony@yahoo.com
 
Old 04-16-2009, 05:35 AM   #2
cor67393
Member
 
Registered: May 2005
Distribution: Slackware 12.1
Posts: 52

Rep: Reputation: 16
It sounds like your machine is swapping (memory is being written back and forth to the swap file). This explains the thrashing and the unresponsiveness.

1. Try pressing ctrl-alt-f6 simultaneously. This will take you to a text only console (slowly if the machine is swapping badly). You can log in there with your own user name and password.

2. Then, type 'top'. This will show you a text only task manager, with processes sorted by cpu-usage.

3. Look at the list and see if you can identify the process responsible for your bad experience, and kill it by pressing 'k'.

4. Then, type the process id (the number associated by the program in the leftmost column). Press 'enter'.

5. Choose via which signal you want to stop the process. The default is 15, if you want this, press enter. If you want to kill the process, type 9 and then enter.

Hopefully, this will solve your problem. You can quit the 'top' program by pressing 'q'. Help for the 'top program can be found by starting 'top' and then pressing 'h'.

You can close your console session by typing quit on the command line. Return to your graphical session by pressing "ctrl-alt-f7".
 
Old 04-16-2009, 07:03 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
If you are struggling to get in, because your machine is very busy, killall can be an easier option than top and kill (providing that you know, in advance, the name of the process that you want to kill).

You'll have to have root magic to do this so you'd want to type something like:

Code:
sudo killall progname
 
Old 04-16-2009, 07:56 AM   #4
cor67393
Member
 
Registered: May 2005
Distribution: Slackware 12.1
Posts: 52

Rep: Reputation: 16
I don't see why sudo or root rights are necessary. If you are the only user on the machine, chances are that the memory/cpu hogging process is yours, so you can kill it just like:
Code:
killall progname
Secondly, Slackware doesn't add users to the sudo file/wheel group by default, so this will result in a warning rather than the expected result.

But, if you know which program is to blame (maybe after some unfortunate experience) then killall is the faster way.
 
Old 04-18-2009, 12:31 AM   #5
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 146Reputation: 146
That is all excellent advice, but there is also a KDE taskmanager that lets you kill processes. How to bring it up depends on your KDE config. For example if it is the copy of newer Windows keystrokes, just press <CTRL><ALT><DEL> and it will start the taskmanager.
 
Old 04-18-2009, 12:40 AM   #6
ssaha
Member
 
Registered: Feb 2009
Location: Kolkata,India
Distribution: Fedora 8,Ubuntu 8.04, 8.10, 9.04, 9.10
Posts: 108

Rep: Reputation: 18
Alternative to the above ones you can press alt+f2 and type xkill in box and hit enter.
you will have a mouse with cross sign. click on any window you want to close. it will close immediately.
 
Old 04-18-2009, 09:11 AM   #7
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Rep: Reputation: 18
Quote:
Originally Posted by dchmelik View Post
... press <CTRL><ALT><DEL> and it will start the taskmanager.
Slackware default is Ctrl+Esc.


Quote:
Originally Posted by ssaha View Post
... press alt+f2 and type xkill in box and hit enter...
Default Slackware short cut is Ctrl+Alt+Esc. The click of death, skull and crossbones cursor. Press Esc again to get out of it.

Last edited by Stroker; 04-18-2009 at 09:13 AM.
 
Old 04-22-2009, 07:21 PM   #8
schmoopie
LQ Newbie
 
Registered: Sep 2004
Location: Matthews, NC
Distribution: Slackware 12.2
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for all the info. works like a charm.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 03:47 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
Ho to kill locked programs... mooreted Linux - Software 7 02-01-2004 10:28 AM
A program locked up. How do I kill it? Travis86 Linux - Newbie 8 01-04-2003 02:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration