LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-16-2007, 02:04 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Question how to exit kde without terminating a particular child process


HEllo! I am running Slackware Linux 11.0 with kernel test26.s. I have rkward (a frontend for the R statistical package for KDE) installed and currently it is performing a time consuming calculation.
I want to know if there is some way to exit KDE without stopping the calculations performed by rkward? If there is no such an option, I would be thankful to receive some advice on how to optimise the calculation time. I have already reniced the process to -20. Here is the output of top:


COMMAND PID USER PR NI VIRT RES SHR SWAP CODE DATA S %CPU %MEM TIME+
rkward.bin 26108 marto 0 -20 114m 86m 24m 28m 1084 71m S 92.9 6.9 1048:57
X 2818 root 15 0 176m 41m 3540 134m 1592 38m S 4.3 3.3 18:23.54
konsole 2234 marto 15 0 29804 13m 11m 15m 40 1380 S 1.3 1.1 0:01.00

As you can see the process in question is rkward.bin.

Any suggestions will be appreciated.
Regards,
Martin
 
Old 05-16-2007, 03:37 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If it needs KDE running then it might prove difficult..but if it works all right without KDE or X at all, you could just start it with screen and detach it and log out. Then when you need it, just re-attach and look at the results. Screen is a program you can easily install, read more about it on the net or search here at LQ.
 
Old 05-16-2007, 10:35 AM   #3
TNWestTex
Member
 
Registered: May 2006
Location: Tennessee
Distribution: current, rawhide
Posts: 88

Rep: Reputation: 16
Quote:
Originally Posted by tramni1980
HEllo! I am running Slackware Linux 11.0 with kernel test26.s. I have rkward (a frontend for the R statistical package for KDE) installed and currently it is performing a time consuming calculation.
I want to know if there is some way to exit KDE without stopping the calculations performed by rkward? If there is no such an option, I would be thankful to receive some advice on how to optimise the calculation time. I have already reniced the process to -20. Here is the output of top:

Regards,
Martin
I don't have any experience with rkward, but run number crunching a lot with the processes having 99.9% of the cpu under kde. KDE doesn't seem to use much of the resource unless I'm moving windows around or running other processes that intensively access the display. Set the screensaver to a blank screen and crunch away.
 
Old 05-16-2007, 01:34 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
rkward is a gui frontend ... if you kill X, then it will go down as well. Unless you use screen and the CLI version of R, without rkward, then there is no way.

What do you mean by 'how to optimise the calculation time' ? You want it to calculate faster ? It looks like it's using all your CPU time already.

Things you might try:

1) Use the command line R.

2) Compile R and its dependencies from source with optimization flags.

3) Compile your kernel from source with optimization flags.

That's all I can think of.
 
Old 05-17-2007, 02:55 AM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Increase CPU frequency, decrease memory timings (might be dangerous, if you do not know what you are doing).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 kill a Child and all its subsequent child process in C shayer009 Programming 3 12-04-2007 12:40 AM
Killing a child process from another child marri Programming 6 10-01-2004 07:08 PM
terminating multi-threaded programs with exit() ?? Hammo Programming 3 02-22-2004 01:37 AM
disconnecting from a process without terminating it linxtc Linux - General 1 09-21-2003 11:47 PM
child process did not exit kaidoggy Linux - General 0 10-18-2002 09:36 AM

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

All times are GMT -5. The time now is 05:21 PM.

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