Differences between version 13 and previous revision of ProcessNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 13 | Last edited on Sunday, November 17, 2002 10:40:21 pm | by CraigBox | Revert |
Older page: | version 10 | Last edited on Monday, October 7, 2002 6:27:59 pm | by PerryLorier | Revert |
@@ -5,8 +5,9 @@
top(1) - display the top cpu processes %%%
kill(1) - Send a signal(7) to a process by ProcessID %%%
killall(1) - Send a signal(7) to a process by name %%%
killall5(8) - Send a signal(7) to all running processes%%%
+nice(1) -run a program with modified scheduling priority%%%
pidof(8) - Tells you the pid(s) of a process by name%%%
fuser(8) - Tells you which processes are using a resource, and optionally send them a signal(7) %%%
lsof(8) - Similar to fuser
vmstat(8) - get vm statistics and information.
@@ -23,13 +24,16 @@
----
Someone was searching for "WCHAN", so here's a definition, when a process is 'sleeping in the kernel' (in the S state) then WCHAN is the function inside the kernel it is sleeping on. for instance init(8) (at least on my machine) usually is blocked inside "select" from select(2).
----
-nice(1) lets you make programs "nicer" (ie: use
less CPU in proportion to other processes). nice values in Linux range between -20 and +19. The default nice(1) level is "". Only the root user can lower their niceless level. Higher nice level means it has a lower priority. A process running at -20 is considered "RealTime" and is never preempted.
+nice(1) lets you make programs "nicer" (ie: have
less access to the [
CPU]
in proportion to other processes). nice values in Linux range between -20 and +19. The default nice(1) level is "". Only the root user can lower their niceless level. Higher nice level means it has a lower priority. A process running at -20 is considered "RealTime" and is never preempted.
nice -n ''nicelevelchange'' ''program'
eg:
- nice -n 1 ./program
-will run ./program with one level higher niceness (ie: *lower* priority).
+ nice -n 1 ./program OR nice -
1 ./program
+will run ./program with one level higher niceness (ie: *lower* priority compared to other processes).
+
+ nice --5 ./program
+will run a process with lower niceness (ie *higher* priority) of negative 5. (Only the root user can do this
).
----
top(1)'s summary output:%%%
* The top line has the uptime, the number of users logged in (according to utmp(5)) and the LoadAverage (according to uptime(1))
* The next line has the number of processes, then a break down of sleeping processes (processes blocked waiting for an event), the number of running processes, the number of zombie processes (processes that haven't been cleaned up by their parent process) and the number of stopped processes (processes that are stopped by SIGSTOP)
@@ -81,16 +85,8 @@
if you want to unmount a filesystem but its in use you can use
ps -auxwwe |grep ''mountpoint''
-
-to locate any processes that are using the filesystem. CraigBox prefers
-
lsof | grep ''mountpoint''
-
-lsof stands for __l__i__s__t of __o__pen __f__iles.
-
-PerryLorier prefers
fuser -vm ''mountpoint''
-
-AddToMe
+lsof(8) stands for __l__i__s__t of __o__pen __f__iles.