Portál AbcLinuxu, 30. července 2025 17:21
nice
a ps
mají zajímavou dokumentaci...
$ ps -l F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 0 S 501 9385 9370 0 75 0 - 830 wait pts/3 00:00:00 bash 0 R 501 9900 9385 0 75 0 - 915 - pts/3 00:00:00 ps $ nice ps -l F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 0 S 501 9385 9370 0 76 0 - 830 wait pts/3 00:00:00 bash 0 R 501 9901 9385 0 88 10 - 914 - pts/3 00:00:00 ps $ nice -n 15 ps -l F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 0 S 501 9385 9370 0 75 0 - 830 wait pts/3 00:00:00 bash 0 R 501 9902 9385 0 92 15 - 915 - pts/3 00:00:00 ps $ nice -n -1 ps -l nice: cannot set priority: Přístup odmítnut $ su - Password: # nice -n -1 ps -l F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 9904 9385 0 76 0 - 621 wait pts/3 00:00:00 su 4 S 0 9907 9904 2 75 0 - 910 wait pts/3 00:00:00 bash 4 R 0 9957 9907 0 76 -1 - 914 - pts/3 00:00:00 ps
$ renice 5 22996 22996: old priority 0, new priority 5 $ renice 4 22996 renice: 22996: setpriority: Permission denied $ renice 6 22996 22996: old priority 5, new priority 6
renice (nový nice) (pid)např.
$ renice 5 22996 22996: old priority 0, new priority 5
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.