Penguin

Differences between version 21 and revision by previous author of ProcessNotes.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 21 Last edited on Wednesday, January 18, 2006 2:37:51 pm by CraigBox Revert
Older page: version 18 Last edited on Monday, August 23, 2004 1:16:06 pm by PerryLorier Revert
@@ -1,13 +1,13 @@
 For a good introduction to processes, have a look at the slides on our UnixTutorials page. 
  
 !! Useful Process Related utilities 
  
-; %%% fuser(8 ) : Tells you which processes are using a resource, and optionally send them a [Signal] 
+; %%% fuser(1 ) : Tells you which processes are using a resource, and optionally send them a [Signal] 
 ; %%% kill(1) : Send a [Signal] to a process by ProcessID 
 ; %%% killall(1) : Send a [Signal] to a process by name 
 ; %%% killall5(8) : Send a [Signal] to all running processes 
-; %%% lsof(8) : Similar to fuser(8
+; %%% lsof(8) : Similar to fuser(1
 ; %%% nice(1) : Run a program with modified scheduling priority 
 ; %%% pgrep(1), pkill(1) : Look up or signal processes based on name and other attributes 
 ; %%% pidof(8) : List pid(s) of process(es) by name 
 ; %%% ps(1) : Display process status 
@@ -143,7 +143,17 @@
 !!Help I'm running out of file handles, what's using them all? 
  lsof | awk '{print $2}' | uniq -c | sort -n +1 | join -12 -21 - <(ps ax -o pid,command | sort -n) | sort -n +1 
 This one liner lists processes in the form "pid,number of open files,command" with the process using the most files at the end. 
 You can use this to determine which process on your system is leaking file handles, then use strace(1) to figure out why. 
+  
+Read about [Zombie processes|Zombie]  
+  
+!! Saving processes to disc (software suspend)  
+  
+Hate having processes die because of kernel upgrades? The thought of losing your irssi scrollback just too much for you?  
+  
+Get [Cryopid|http://cryopid.berlios.de/]. Compile (I needed zlib1g-dev on my Ubuntu machine which had build-essentials installed) and then run 'freeze' to save processes to disk. You start the process again by executing the file that it saves - there is no 'thaw' utility  
+  
+It can't save a screen session, but you can save the processes inside them and rescreen.  
  
 ---- 
 CategoryNotes