Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

backround processes

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 04-22-04, 12:30 AM Thread Starter   #1
wired14
Member



Join Date: Oct 2003
Location: Rockville, MD & Athens, Greece

 
backround processes


most of the time i have at least 80-90 proccesses running. DO i need all of them? how can i get a list of what is running and how do i kill the ones i do not want?

Also, how can i know their purpose?
wired14 is offline   QUOTE Thanks
Old 04-22-04, 01:43 AM   #2
Christoph
JAPH Senior

 
Christoph's Avatar 

Join Date: Oct 2001
Location: Redmond, WA

 
ps aux will show you every process on your computer (running/sleeping/waiting/whatever). It will usually be a long list (mine was 156 lines just now), but it's easy to filter through it with grep. The man and info pages will tell you what most of the stuff does.
I've got a neat little script called ws (for what started...) that tells you the PID and starting command for any process that matches the input string.

#!/bin/bash
PSAUX=~/.psauxtmp
ps aux>$PSAUX
for ps in $(pgrep $1)
do
..#the format of ps' output is
..#root 3849 0.0 0.0 0 0 ? SW 21:04 0:00 [nfsd]
..#Strip out everything before the name of what was executed by looking for
..#the last 2 times (ie 21:04 0:00)
..echo -n $ps": " && cat $PSAUX|grep $ps|sed 's;.*[0-9]*:[0-9]* [0-9]*:[0-9]* ;;g'
done
rm $PSAUX


edit: Don't forget to replace the invisible dots with spaces (or nothing) if you copy and paste.

__________________
FoldSig | Heatware | Alt OS FAQWiki | JAPH | ADO

"Coming onto the forums after you've had a concussion is prolly not a good idea, but I'm doin' it anyways!"
-dark_15

Last edited by Christoph; 04-22-04 at 03:58 AM.
Christoph is offline   QUOTE Thanks
Old 04-22-04, 01:05 PM   #3
Arkaine23
Captain Random
Senior Evil Genius


 
Arkaine23's Avatar 

Join Date: Nov 2001
Location: Woodlands, Tx

10 Year Badge
 
Odds are there are service running you may not need. It depends on your distro exactly how to go about disabling them.

__________________
Folding.for.team.32.as.OC3d!
i5 3570 @ 4.5 | 8GB | SSD | 5-disk Raid 0 | 660 Ti +154 other/slower clients folding
Folding User Stats
Arkaine23 is offline Folding Profile Heatware Profile   QUOTE Thanks
Old 04-22-04, 05:32 PM   #4
Christoph
JAPH Senior

 
Christoph's Avatar 

Join Date: Oct 2001
Location: Redmond, WA

 
I should emphasize that my script will only kill a running process. If you want a service not to start, you have to play with your distro's init scripts, which are somewhat distro-dependent. Your distro's online docs should tell you what you need to know.

edit: I shouldn't emplasize.

__________________
FoldSig | Heatware | Alt OS FAQWiki | JAPH | ADO

"Coming onto the forums after you've had a concussion is prolly not a good idea, but I'm doin' it anyways!"
-dark_15

Last edited by Christoph; 04-22-04 at 07:37 PM.
Christoph is offline   QUOTE Thanks
Old 04-23-04, 12:49 AM   #5
tamasrepus
Registered



Join Date: Aug 2002
Location: Las Cruces, NM, USA

 
80-90 processes for a Linux system is not much. Keep in mind many of those are probably duplicate processes, which do not take much memory. Several kernel user-space daemons also get run as processes, and you would have no control over them.

Probably the best list is your own computer. Take each running process, and `man thatprocess` to see what it does and whether you need it. There's always your favorite search engine too.
tamasrepus is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 04:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?