FIND
Moderators: MattKingUSA, khz
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
FIND
Every now and then I can hear my pc processing even when I'm not doing anything. I ran "top" and found an app called "find" was using 10-15% cpu. I tried to kill the process (the PID) but nothing happened, it kept on working. Is this normal? Why was it running and what for? Is it a necessary app?
Thanks!
brian
Thanks!
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
- raboof
- Established Member
- Posts: 1855
- Joined: Tue Apr 08, 2008 11:58 am
- Location: Deventer, NL
- Has thanked: 50 times
- Been thanked: 74 times
- Contact:
Re: FIND
Check who started it with 'ps faux | less'.briandc wrote:Every now and then I can hear my pc processing even when I'm not doing anything. I ran "top" and found an app called "find" was using 10-15% cpu. I tried to kill the process (the PID) but nothing happened, it kept on working. Is this normal? Why was it running and what for? Is it a necessary app?
Perhaps part of the 'updatedb' process for the 'locate' database?
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
I can do the command, but I had just turned the pc on. (I'm the only one using it.)raboof wrote:Check who started it with 'ps faux | less'.briandc wrote:Every now and then I can hear my pc processing even when I'm not doing anything. I ran "top" and found an app called "find" was using 10-15% cpu. I tried to kill the process (the PID) but nothing happened, it kept on working. Is this normal? Why was it running and what for? Is it a necessary app?
Perhaps part of the 'updatedb' process for the 'locate' database?
That's why I can't figure out: a) why it runs by itself, and b) if it's a normal behavior.
brian
PS: If it's any help, the owner of the process was "nobody."
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
- raboof
- Established Member
- Posts: 1855
- Joined: Tue Apr 08, 2008 11:58 am
- Location: Deventer, NL
- Has thanked: 50 times
- Been thanked: 74 times
- Contact:
Re: FIND
It's probably run (perhaps indirectly) from a crontab.briandc wrote:That's why I can't figure out: a) why it runs by itself
Probably, but it might still be interesting what exactly it is, and perhaps you don't want/need it.briandc wrote:b) if it's a normal behavior.
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
Yes, I suppose I could just uninstall it. I usually use "locate" to find files rather than "find" anyway.
If anyone has more details about this app, I'd be curious to know why it behaves this way. It was certainly slowing things down. (It always stops after a few minutes. Perhaps there is some type of default setting that's making it run, but I don't recall ever activating it.)
brian
If anyone has more details about this app, I'd be curious to know why it behaves this way. It was certainly slowing things down. (It always stops after a few minutes. Perhaps there is some type of default setting that's making it run, but I don't recall ever activating it.)
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
- raboof
- Established Member
- Posts: 1855
- Joined: Tue Apr 08, 2008 11:58 am
- Location: Deventer, NL
- Has thanked: 50 times
- Been thanked: 74 times
- Contact:
Re: FIND
You don't want to remove the 'find' utility, it is a general tool - many scripts will break when you delete it. If you want to remove anything, you want to remove the process that is calling find.briandc wrote:Yes, I suppose I could just uninstall it. I usually use "locate" to find files rather than "find" anyway.
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
Yes, in fact I have now learned that "find" is part of the "findutils" package and when using synaptic to remove it there was a prompt warning me that removing it might "make my system unusable." (something almost "Windows-like"... )raboof wrote:You don't want to remove the 'find' utility, it is a general tool - many scripts will break when you delete it. If you want to remove anything, you want to remove the process that is calling find.briandc wrote:Yes, I suppose I could just uninstall it. I usually use "locate" to find files rather than "find" anyway.
As far as I can tell, this "find" app runs at start-up. However, I don't know how to pinpoint exactly which app is causing it to run.
From gnu.org:
http://www.gnu.org/software/findutils/m ... iderationsIt is common for the operating system to periodically invoke find for self-maintenance purposes.
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
- raboof
- Established Member
- Posts: 1855
- Joined: Tue Apr 08, 2008 11:58 am
- Location: Deventer, NL
- Has thanked: 50 times
- Been thanked: 74 times
- Contact:
Re: FIND
'find' is not an application that does something useful in and of itself, it is a tool you can use when writing other scripts. You can think of it as 'an advanced version of ls': you wouldn't want to remove 'ls' from your system either, even when it can be invoked in a way that causes I/O (i.e. 'ls -R /').briandc wrote:As far as I can tell, this "find" app runs at start-up. However, I don't know how to pinpoint exactly which app is causing it to run.
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
So what applications would envoke it at startup, and why? It seems quite strange..raboof wrote: 'find' is not an application that does something useful in and of itself, it is a tool you can use when writing other scripts. You can think of it as 'an advanced version of ls': you wouldn't want to remove 'ls' from your system either, even when it can be invoked in a way that causes I/O (i.e. 'ls -R /').
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
Re: FIND
If you know your way around the command line, you can find out using tools like top, ps and pstree. If you're not that comfortable, you could install htop or something similar. If you call it in a terminal, you can use the up and down arrows to navigate to the "find" process and have a look at its process tree, i.e. by which tool(s) it was called.briandc wrote:So what applications would envoke it at startup, and why? It seems quite strange..
heix
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
Indeed, I discovered it was running just by running top. But how can I find the process tree?heix wrote:If you know your way around the command line, you can find out using tools like top, ps and pstree. If you're not that comfortable, you could install htop or something similar. If you call it in a terminal, you can use the up and down arrows to navigate to the "find" process and have a look at its process tree, i.e. by which tool(s) it was called.briandc wrote:So what applications would envoke it at startup, and why? It seems quite strange..
heix
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
Re: FIND
If you run top, you'll see a column "PID". Note the number you see there in the line that has "find" as command. Quit top and type pstree followed by the number (the "process id" of the find process) you saw in top.briandc wrote: Indeed, I discovered it was running just by running top. But how can I find the process tree?
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
I did what you suggested, and the result it gave was "find." Since the user for find is "nobody," I also triedheix wrote:If you run top, you'll see a column "PID". Note the number you see there in the line that has "find" as command. Quit top and type pstree followed by the number (the "process id" of the find process) you saw in top.briandc wrote: Indeed, I discovered it was running just by running top. But how can I find the process tree?
Code: Select all
pstree nobody
Code: Select all
su__sh__find
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com
-
- Established Member
- Posts: 369
- Joined: Fri Sep 23, 2011 1:03 pm
Re: FIND
Aaargh, yes it is!raboof wrote:'find' is not an application that does something useful in and of itself...
find is one of the most useful *nix commands and should be one of the first to be learned by anyone who ever opens a terminal window. It can be a little tricky, eg getting the quotes right when using it with wild cards, but that is all part of *nix first steps anyway.
Because of its power, the man page, with its numerous options could be a little daunting: -name, -ls and -print serve my purposes nine times out of ten.
As well, yes indeed. It is one of the most vital administration tools.it is a tool you can use when writing other scripts...
Bottom line: why worry? Has it caused any problems? Your operating stuff is doing all sorts of stuff, often, when you are not doing anything. One of the reasons that we use Linux is that we expect it to be better at managing itself than some other OSs we could name.Every now and then I can hear my pc processing even when I'm not doing anything. I ran "top" and found an app called "find"
Among the various options to find are those which list files by access and modification times, older or newer than. This is a vital admin tool, and it is quite possible that something like this is going on, perhaps to deal with outdated temp files, or old log files, etc etc. Removing the find binary would be like cutting off your arm because of mild itch on one finger. Don't even think about it!
Actually, there is a very good answer to the question Why worry? --- it is that an hour or two researching something like this, from the standpoint of pure curiosity, is a hugely educational process. It's how I did most of my learning back in the day when I earned my living from this stuff. Enjoy
- briandc
- Established Member
- Posts: 1442
- Joined: Sun Apr 29, 2012 3:17 pm
- Location: Italy
- Has thanked: 58 times
- Been thanked: 28 times
- Contact:
Re: FIND
True, true. It's not causing any "problems" per se, although something does seem to initiate the find process at every boot, and although it only lasts a few minutes, it does slow down things when I begin work (unless I wait for it to finish). And, there *must* be a reason why it happens. Knowing the answer is part of the learning.Thad E Ginathom wrote:Bottom line: why worry? Has it caused any problems? Your operating stuff is doing all sorts of stuff, often, when you are not doing anything. One of the reasons that we use Linux is that we expect it to be better at managing itself than some other OSs we could name.Every now and then I can hear my pc processing even when I'm not doing anything. I ran "top" and found an app called "find"
Among the various options to find are those which list files by access and modification times, older or newer than. This is a vital admin tool, and it is quite possible that something like this is going on, perhaps to deal with outdated temp files, or old log files, etc etc. Removing the find binary would be like cutting off your arm because of mild itch on one finger. Don't even think about it!
Actually, there is a very good answer to the question Why worry? --- it is that an hour or two researching something like this, from the standpoint of pure curiosity, is a hugely educational process. It's how I did most of my learning back in the day when I earned my living from this stuff. Enjoy
brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
My sound synthesis biome: http://www.linuxsynths.com