LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-28-2010, 04:54 AM   #1
Moore
Member
 
Registered: Sep 2005
Posts: 49

Rep: Reputation: 15
[pm] process in linux


hi,

I have seen this process since I upgrade fedora core 12
Code:
>ps -ef | grep pm
root        15     2  0 10:31 ?        00:00:00 [pm]
I need to remove this process.

It doesnt appear in the services list.
Also when I try find the binary:
Code:
>whereis pm
pm: /etc/pm
>cd /etc/pm
>ls -la
total 28
drwxr-xr-x   5 root root  4096 2010-04-23 10:47 .
drwxr-xr-x 120 root root 12288 2010-05-28 10:49 ..
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 config.d
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 power.d
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 sleep.d
>
It appears it may have to do with power management.

I removed this /etc/pm and after reboot it was still present.
I cant find any other [pm] binary


Any thoughts appreciated...
 
Old 05-28-2010, 06:39 AM   #2
antegallya
Member
 
Registered: Jun 2008
Location: Belgium
Distribution: Debian
Posts: 109

Rep: Reputation: 42
Hello,
process' between brackets usually are kernel threads, so you won't find any binary for it.

The [pm] workqueue is of the Runtime power management framework (runtime power management for I/O devices). If you absolutely don't want it, you'll have the recompile your kernel and remove the PM_RUNTIME option. It was added in kernel 2.6.32.

Last edited by antegallya; 05-28-2010 at 03:24 PM. Reason: s/are/usually are/
 
Old 05-28-2010, 06:53 AM   #3
Moore
Member
 
Registered: Sep 2005
Posts: 49

Original Poster
Rep: Reputation: 15
thanks for the very useful info.
is the modification and rebuild of the kernal a "big" job. have had no need to do it before so not sure what I'm dealing with. is there any other way to disable? I know other FC12 users and the [pm] is not present. thanks.
 
Old 05-28-2010, 07:22 AM   #4
antegallya
Member
 
Registered: Jun 2008
Location: Belgium
Distribution: Debian
Posts: 109

Rep: Reputation: 42
Removing that option and rebuilding a kernel is a rather easy task but that takes some computation time (you can usually go drink a cup of coffee or two while it's compiling, depending on your hardware specs).
And learning to reconfigure it would be a good way to higher up your linux knowledge. You can certainly find plenty of tutorials on the net for that.

However, the real question here is : do you really *need* to disable runtime power management ? That's no big deal but it saves the planet !

I don't know why other people using FC12 don't have [pm] (maybe you don't have the same kernel version for some reason ? Maybe a different architecture) but it's a feature added for the good's sake. There's no problem having it, and it certainly won't affect performances at your level, it saves power, battery time and money.
So, if I were you, unless you have a really good reason to remove it, I won't take the "pain" to remove it.

Last edited by antegallya; 05-28-2010 at 07:24 AM.
 
Old 05-28-2010, 07:34 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,141

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Quote:
Originally Posted by antegallya View Post
process' between brackets are kernel threads,
s/are/usually are/

However, I agree - why do you "need" to remove this ?.
 
Old 05-28-2010, 08:18 AM   #6
Moore
Member
 
Registered: Sep 2005
Posts: 49

Original Poster
Rep: Reputation: 15
basically I need to remove because I have another process with the same name (which wont run cos it detects this kernal pm running). and I cant change the name of the legacy process (from pm to something else). thats the basic reason for wanting to remove. I appreciate the feedback.
 
Old 05-28-2010, 08:34 AM   #7
rubentje1991
Member
 
Registered: Feb 2008
Location: Belgium
Distribution: PCLinuxOS
Posts: 102

Rep: Reputation: 22
Question process

what other process do you want to start (I hope I didn't misread it somewhere)...?
 
Old 05-28-2010, 08:39 AM   #8
Moore
Member
 
Registered: Sep 2005
Posts: 49

Original Poster
Rep: Reputation: 15
the legacy binary I have is called pm also and it has to be a single instance. therefore the legacy binary checks to see if pm is running and of course it picks up the kernal pm thread and the pid associated with. unfortunately I cannot change the nature of legacy pm bin.
 
Old 05-28-2010, 09:05 AM   #9
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,910

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Quote:
Originally Posted by Moore View Post
the legacy binary I have is called pm also and it has to be a single instance. therefore the legacy binary checks to see if pm is running and of course it picks up the kernal pm thread and the pid associated with. unfortunately I cannot change the nature of legacy pm bin.
Oh dear God! The author of that binary should be hunted down and SHOT! You have my sympathy.

If you don't have access to the source then how about renaming your legacy binary to PM, and then using something like an hex-editor to hack the executable and change the process name it's checking against to match the new name (if necessary).

It's ugly but it might be the easiest option.

Last edited by GazL; 05-28-2010 at 09:08 AM.
 
Old 05-28-2010, 09:38 AM   #10
antegallya
Member
 
Registered: Jun 2008
Location: Belgium
Distribution: Debian
Posts: 109

Rep: Reputation: 42
I agree with GazL.
I long to know what is that binary that have such a bad method of singleton check.
It would be a pain to have to recompile your kernel with each new version. The guilty binary has to be fixed.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java process VS Linux process. sanu_sasidharan Linux - Server 3 10-27-2009 07:47 AM
Finding the Process ID of a Process While Initiating the Process senthilmuthiah Linux - Newbie 7 04-02-2009 10:37 AM
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:39 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