LINUX.ORG.RU
ФорумTalks

Давайте меряться

 ,


0

0

С каждым днём на десктопном линуксе появляется всё больше демонов, съедающих всё больше cpu time; так давайте же померяемся:

ps -eo comm,time,start |sort -rk2 |head -20
или
ps -eo comm,bsdtime,start --sort -time |head -20
Пример выхлопа:
$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND TIME STARTED
VBoxSDL 1493:44 Mar 31
mpd 239:26 Mar 29
Xorg 184:07 Mar 29
xl2tpd 86:46 Mar 29
ksoftirqd/3 31:54 Mar 29
firefox 10:46 23:11:30
ksoftirqd/0 8:10 Mar 29
ksoftirqd/1 4:11 Mar 29
ksoftirqd/2 3:57 Mar 29
geany 2:45 Mar 29
transmission-da 0:55 15:18:19
lxterminal 0:52 Mar 29
VBoxSVC 0:34 Mar 31
jbd2/sda3-8 0:25 Mar 29
jbd2/sda1-8 0:22 Mar 29
plugin-containe 0:18 15:19:04
openbox 0:12 Mar 29
transmission-qt 0:10 15:18:21
VBoxXPCOMIPCD 0:10 Mar 31



Последнее исправление: uzbl (всего исправлений: 3)
~ > ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
kworker/3:1       4:44 08:51:26
nautilus          4:13 17:09:59
ksoftirqd/3       3:28 23:50:59
kworker/3:2       2:11 17:38:09
kworker/3:3       1:32 17:31:07
firefox-bin       1:14 16:51:51
Xorg              1:11 16:47:47
kworker/1:1       1:04 17:38:49
kworker/0:0       0:59 17:30:33
kworker/1:0       0:55 16:19:46
kworker/2:2       0:43 17:28:35
md0_raid1         0:36 23:51:01
kswapd0           0:33 23:51:00
kworker/2:3       0:24 17:33:31
jbd2/dm-3-8       0:21 23:51:14
mpd               0:21 00:02:01
kworker/0:1       0:21 17:40:36
gnome-terminal    0:05 16:53:05
gkrellm           0:04 17:23:17
GotF ★★★★★
()

меня пугает заголовок темы :)

Licwin ★★★★★
()

С каждым днём на десктопном линуксе появляется всё больше демонов, съедающих всё больше cpu time

VBoxSDL

mpd

xl2tpd

firefox

Такие суровые десктопные демоны ви-бокс, эмпэдэ и фурифокс.... Надо полагать всё из коробки было настроено и запущено.

true_admin ★★★★★
()
COMMAND TIME STARTED
X 3:14 12:40:24
chrome 1:59 13:00:25
CrRendererMain 1:26 13:00:34
psi-plus 1:18 12:40:55
compiz 1:16 12:40:41
conky 1:08 12:40:58
CrRendererMain 0:56 13:00:34
deadbeef-main 0:52 14:09:48
CrRendererMain 0:28 13:00:30
plasma-desktop 0:18 12:40:44
CrRendererMain 0:13 13:00:30
CrRendererMain 0:12 13:00:30
conky 0:11 12:40:58
tilda 0:10 12:41:00
CrRendererMain 0:04 13:00:34
CrRendererMain 0:04 13:00:34
renice 0:02 12:40:29
emerald 0:02 12:41:17
chrome 0:02 13:00:27

и не надо использовать убогий тег pre!!!

megabaks ★★★★
()

??

[shuck@Brutus-F3Sg .config]$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND TIME STARTED
init 0:00 14:58:58
kthreadd 0:00 14:58:58
ksoftirqd/0 0:00 14:58:58
migration/0 0:00 14:58:58
watchdog/0 0:00 14:58:58
migration/1 0:00 14:58:58
ksoftirqd/1 0:00 14:58:58
kworker/0:1 0:00 14:58:58
watchdog/1 0:00 14:58:58
cpuset 0:00 14:58:58
khelper 0:00 14:58:58
kdevtmpfs 0:00 14:58:58
netns 0:00 14:58:58
sync_supers 0:00 14:58:58
bdi-default 0:00 14:58:58
kblockd 0:00 14:58:58
khungtaskd 0:00 14:58:59
kswapd0 0:00 14:58:59
ksmd 0:00 14:58:59

a931bw
()
COMMAND           TIME  STARTED
X               130:02   Mar 27
mpd              32:31   Mar 27
conky            26:40   Mar 28
qbittorrent      19:46   Mar 31
awesome          16:20   Mar 27
skype            12:07 19:37:22
chrome            9:21 10:04:55
dropbox           7:00   Mar 27
nautilus          5:28   Mar 27
chrome            4:02 11:51:58
tilda             3:51   Mar 27
privoxy           3:06   Mar 27
CrRendererMain    1:20 10:05:02
NetworkManager    1:01   Mar 27
nm-applet         0:51   Mar 27
gdm               0:40   Mar 27
CrRendererMain    0:40 10:05:02
dbus-daemon       0:35   Mar 27
CrRendererMain    0:34 13:34:30

Что-то иксы офигели.

tiandrey ★★★★★
()
$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
firefox          30:12 13:39:02
Xorg             16:08 13:07:41
amarok           12:19 13:08:17
kwin              9:11 13:07:54
pidgin            8:42 13:09:42
dbus-daemon       7:09 13:07:41
pulseaudio        5:31 13:08:11
plugin-containe   4:30 13:39:12
plasma-desktop    2:43 13:07:58
skype.real        1:55 13:09:25
udisks-daemon     1:34 13:07:53
qbittorrent       0:49 13:08:10
krusader          0:41 13:49:27
gpm               0:32 13:07:41
dbus-daemon       0:32 13:07:44
notify-osd        0:19 13:08:15
kded4             0:09 13:07:47
kactivitymanage   0:06 13:07:52
krunner           0:06 13:08:11
Darth_Revan ★★★★★
()
[behem0th@ArchLinux ~]$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
init              0:00 09:09:30
kthreadd          0:00 09:09:30
ksoftirqd/0       0:06 09:09:30
migration/0       0:00 09:09:30
watchdog/0        0:00 09:09:30
migration/1       0:00 09:09:30
ksoftirqd/1       0:07 09:09:30
watchdog/1        0:00 09:09:30
migration/2       0:00 09:09:30
ksoftirqd/2       0:06 09:09:30
watchdog/2        0:00 09:09:30
migration/3       0:00 09:09:30
ksoftirqd/3       0:50 09:09:30
watchdog/3        0:00 09:09:30
cpuset            0:00 09:09:30
khelper           0:00 09:09:30
kdevtmpfs         0:00 09:09:30
netns             0:00 09:09:30
sync_supers       0:04 09:09:30

Behem0th ★★★★★
()

Это с ноута, кто нибудь теперь объяснит что все это значит?

[root@Nout-arch ~]# ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
init              0:49   Feb 23
kthreadd          0:00   Feb 23
ksoftirqd/0       0:13   Feb 23
kworker/u:0       0:00   Feb 23
migration/0       0:00   Feb 23
watchdog/0        0:24   Feb 23
cpuset            0:00   Feb 23
khelper           0:00   Feb 23
kdevtmpfs         0:00   Feb 23
netns             0:00   Feb 23
sync_supers       0:10   Feb 23
bdi-default       0:00   Feb 23
kblockd           0:00   Feb 23
khungtaskd        0:00   Feb 23
kswapd0           5:32   Feb 23
ksmd              0:00   Feb 23
fsnotify_mark     0:00   Feb 23
crypto            0:00   Feb 23
kthrotld          0:00   Feb 23
Behem0th ★★★★★
()
Ответ на: комментарий от Behem0th

Либо у вас перацкий ps, либо запускаете на «голом» свежезагруженом ядре; сортировку сделать можно так:

ps -eo comm,time,start |sort -rk2 |head -20
параметры своего ps смотри сам; или обнови procps до 3.3.2_p2-r1, например.

uzbl
() автор топика
% ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
rtorrent         31:48   Mar 29
java             19:04   Mar 29
mpd               8:22   Mar 29
wrapper           1:26   Mar 29
kswapd0           0:41   Mar 29
beam              0:12   Mar 29
monit             0:11   Mar 29
php5-fpm          0:11   Mar 30
screen            0:09   Mar 29
lighttpd          0:07   Mar 29
jbd2/sda1-8       0:06   Mar 29
events/0          0:05   Mar 29
dovecot           0:05   Mar 29
xfsbufd           0:04   Mar 29
php5-fpm          0:04   Mar 29
init              0:03   Mar 29
ksoftirqd/0       0:03   Mar 29
flush-8:0         0:03   Mar 29
openvpn           0:02   Mar 29
mydoom ★★★
()

Эклипс все сожрал

$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
java            3383:54   Mar 30
Xorg            253:49   Mar 27
cinnamon        166:50   Mar 27
pulseaudio       28:51   Mar 30
chrome           26:24   Mar 30
chrome            6:23   Mar 30
dbus-daemon       4:39   Mar 27
ksoftirqd/0       4:31   Mar 27
ksoftirqd/1       4:04   Mar 27
ksoftirqd/2       3:16   Mar 27
chrome            3:04   Mar 30
gnome-screensav   2:56   Mar 27
chrome            2:34   Mar 30
ksoftirqd/3       2:13   Mar 27
dropbox           1:52   Mar 27
unclutter         1:05   Mar 27
NetworkManager    0:52   Mar 27
xfce4-terminal    0:49   Mar 27
irqbalance        0:46   Mar 27
ooobooontooo
()

# ps -eo comm,bsdtime,start --sort -time |head -20 COMMAND TIME STARTED kworker/1:2 2:05 Mar 31 kworker/1:0 1:36 18:37:14 kworker/0:2 0:29 Mar 31 kworker/0:1 0:26 Mar 31 dnsmasq 0:14 Mar 31 upnpd 0:13 Mar 31 munin-node 0:11 Mar 31 kworker/u:0 0:09 Mar 31 ifplugd 0:08 Mar 31 arc_reclaim 0:08 18:44:32 l2arc_feed 0:07 18:44:32 lighttpd 0:06 Mar 31 flush-8:0 0:05 Mar 31 init 0:03 Mar 31 cupsd 0:03 Mar 31 sshd 0:03 04:55:54 jbd2/sda3-8 0:01 Mar 31 syslog-ng 0:01 Mar 31 pppd 0:01 Mar 31

Adjkru ★★★★★
()
Ответ на: комментарий от uzbl

На ноует иксы не стартуют по умолчанию, он у меня как торренто качалка.

[root@ArchLinux behem0th]# pacman  -Qi procps
Название              : procps
Версия                : 3.2.8-4
URL                   : http://procps.sourceforge.net/
Лицензии              : GPL  LGPL
Группы                : base
Предоставляет         : Нет
Зависит от            : ncurses
Дополнительно         : Нет
Требуется пакетами    : pm-utils
Конфликтует с         : Нет
Заменяет              : Нет
Установленный размер  : 608,00 KiB
Сборщик               : Evangelos Foutras <foutrelis@gmail.com>
Архитектура           : i686
Дата сборки           : Пн. 25 июля 2011 22:16:19
Дата установки        : Сб. 30 июля 2011 17:09:02
Причина установки     : Явно установлен
Установочный скрипт   : No
Описание              : Utilities for monitoring your system and processes on your system

[root@Nout-arch ~]# ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
transmission-da 15:04:34   Feb 23
xfsaild/sda6    00:12:55   Feb 23
kswapd0         00:05:32   Feb 23
syslog-ng       00:01:37   Feb 23
jbd2/sda3-8     00:01:08   Feb 23
nmbd            00:00:49   Feb 23
init            00:00:49   Feb 23
smbd            00:00:31 09:24:03
watchdog/0      00:00:24   Feb 23
smbd            00:00:15   Feb 23
ksoftirqd/0     00:00:13   Feb 23
crond           00:00:12   Feb 23
flush-8:0       00:00:11   Mar 24
sync_supers     00:00:10   Feb 23
xfsbufd/sda6    00:00:04   Feb 23
jbd2/sda5-8     00:00:04   Feb 23
dhcpcd          00:00:01   Feb 23
ext4-dio-unwrit 00:00:00   Feb 23
ext4-dio-unwrit 00:00:00   Feb 23
Behem0th ★★★★★
()

leo2@cfhome2:~$ ps -eo comm,bsdtime,start --sort -time |head -20 COMMAND TIME STARTED

pptpgw          103:48   Mar 30
events/0         17:33   Mar 30
ksoftirqd/0      11:39   Mar 30
ajenti-panel      2:01   Mar 30
kerneloops        0:14   Mar 30
rsyslogd          0:12   Mar 30
miniserv.pl       0:12   Mar 30
apache2           0:07   Mar 30
proftpd           0:04   Mar 30
init              0:02   Mar 30
jbd2/sda1-8       0:02   Mar 30
flush-8:0         0:01   Mar 30
pppd              0:01   Mar 30
bash              0:01 16:49:36
kthreadd          0:00   Mar 30
migration/0       0:00   Mar 30
watchdog/0        0:00   Mar 30
cpuset            0:00   Mar 30
khelper           0:00   Mar 30

null123 ★★
()
$ ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
firefox         00:56:03 18:38:02
cinnamon        00:55:48 18:34:51
Xorg            00:30:42 18:34:29
dbus-daemon     00:07:08 18:34:51
pulseaudio      00:02:34   Mar 31
thunderbird-bin 00:01:47 18:35:05
systemd-journal 00:00:46   Mar 31
NetworkManager  00:00:24   Mar 31
gnome-settings- 00:00:23 18:34:51
ksoftirqd/0     00:00:20   Mar 31
dbus-daemon     00:00:20   Mar 31
khugepaged      00:00:19   Mar 31
nautilus        00:00:16 18:36:05
udisksd         00:00:14   Mar 31
kworker/1:1     00:00:12 09:08:22
gnome-terminal  00:00:09 13:05:58
wpa_supplicant  00:00:06   Mar 31
nm-applet       00:00:06 18:34:52
ksoftirqd/1     00:00:05 09:08:22
ratvier ★★
()
% ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
X               00:45:46 08:33:30
plasma-desktop  00:13:48 08:35:00
kwin            00:12:36 08:34:54
ktorrent        00:09:47 09:07:04
konsole         00:08:37 08:36:02
psi-plus        00:05:11 08:39:33
ksysguardd      00:02:10 08:35:08
opera           00:01:58 16:50:24
dbus-daemon     00:00:36 08:34:00
kate            00:00:23 09:28:54
ksoftirqd/0     00:00:18 08:33:14
virtuoso-t      00:00:16 08:36:28
kworker/0:1     00:00:13 12:40:23
kworker/0:3     00:00:12 12:53:55
udisks-daemon   00:00:12 08:34:42
konversation    00:00:10 09:28:34
krunner         00:00:09 08:35:32
kded4           00:00:08 08:34:11
kswapd0         00:00:08 08:33:14
AX ★★★★★
()
COMMAND           TIME  STARTED
bzip2           425:04 06:53:21
plugin-containe 286:18   Mar 29
firefox-bin     264:45   Mar 29
Xorg            171:41   Mar 27
flush           123:29   Mar 27
hd-audio0       107:16   Mar 27
preload          26:02   Mar 27
java             19:22   Mar 27
ecm              17:48 16:35:09
boinc            13:21   Mar 27
metacity          6:54   Mar 27
kondemand/0       5:56   Mar 27
pidgin            5:34   Mar 29
kondemand/1       5:12   Mar 27
python            3:48 06:52:01
mysqld            3:47   Mar 27
syndaemon         2:14   Mar 27
gnome-panel       2:08   Mar 27
jfsCommit         2:02   Mar 27
zloy_buratino
()
$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
systemd           0:02 12:11:31
kthreadd          0:00 12:11:31
ksoftirqd/0       0:00 12:11:31
migration/0       0:00 12:11:31
watchdog/0        0:00 12:11:31
cpuset            0:00 12:11:31
khelper           0:00 12:11:31
kdevtmpfs         0:00 12:11:31
netns             0:00 12:11:31
sync_supers       0:00 12:11:31
bdi-default       0:00 12:11:31
kintegrityd       0:00 12:11:31
kblockd           0:00 12:11:31
ata_sff           0:00 12:11:31
khubd             0:00 12:11:31
md                0:00 12:11:31
kswapd0           0:00 12:11:31
ksmd              0:00 12:11:31
khugepaged        0:00 12:11:31
carasin ★★★★★
()
Ответ на: комментарий от carasin
$ sudo yum list installed | grep procps
procps.i686                          3.2.8-24.20110302git.fc16  @updates

Система загружена утром, после этого один раз побывала в спячке s2ram.

carasin ★★★★★
()
user@insfel:~$  ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND           TIME  STARTED
plugin-containe 118:40 11:42:59
firefox          64:20 10:05:46
Xorg             35:19 10:04:59
deadbeef-main     8:54 13:35:48
transmission      7:43 13:30:36
skype             5:45 10:05:39
gnome-panel       3:18 10:05:12
evolution         2:32 11:10:52
gedit             2:26 11:41:57
dockbarx_factor   1:56 10:05:16
openbox           0:41 10:05:15
nautilus          0:39 10:05:14
gconfd-2          0:21 10:05:08
scsi_eh_3         0:19 10:04:44
hald-addon-stor   0:16 10:04:59
cpufreq-applet    0:14 10:05:16
kjournald         0:10 10:04:53
udisks-daemon     0:10 10:05:13
gnome-terminal    0:09 11:31:31
user@insfel:~$ 
insfel
()

По наглой рыжей морде

COMMAND           TIME  STARTED
firefox         2639:36   Mar 22
Xorg            838:55   Mar 20
plugin-containe 482:55   Mar 22
java            325:40   Mar 28
gnome-panel      84:46   Mar 20
icecast          33:51   Mar 20
nautilus         28:10   Mar 20
metacity         22:31   Mar 20
mpd              18:34   Mar 20
wrapper          15:18   Mar 20
gnome-terminal   12:38   Mar 20
gnome-settings-   7:02   Mar 20
debtorrent-clie   3:46   Mar 20
postgres          3:41   Mar 20
usb-storage       3:11   Mar 20
postgres          2:58   Mar 20
dbus-daemon       2:54   Mar 20
ksoftirqd/0       2:40   Mar 20
nm-applet         2:34   Mar 20
buddhist ★★★★★
()
COMMAND           TIME  STARTED
init              0:00 19:15:42
kthreadd          0:00 19:15:42
ksoftirqd/0       0:00 19:15:42
migration/0       0:00 19:15:42
watchdog/0        0:00 19:15:42
migration/1       0:00 19:15:42
ksoftirqd/1       0:00 19:15:42
watchdog/1        0:00 19:15:42
cpuset            0:00 19:15:42
khelper           0:00 19:15:42
kdevtmpfs         0:00 19:15:42
netns             0:00 19:15:42
sync_supers       0:00 19:15:42
bdi-default       0:00 19:15:42
kblockd           0:00 19:15:42
khungtaskd        0:00 19:15:42
kswapd0           0:03 19:15:42
ksmd              0:00 19:15:42
khugepaged        0:00 19:15:42
mopsene ★★★
()

$ ps -eo comm,bsdtime,start --sort -time |head -20
COMMAND TIME STARTED
X 12:49 23:56:02
opera 2:21 17:32:10
xfwm4 1:12 23:57:58
lxpanel 0:15 02:52:46
operapluginwrap 0:05 17:55:01
spacefm 0:02 03:37:47
pcmanfm 0:01 23:57:58
xscreensaver 0:01 23:57:58
init 0:00 23:55:46
kthreadd 0:00 23:55:46
ksoftirqd/0 0:00 23:55:46
migration/0 0:00 23:55:46
cpuset 0:00 23:55:46
khelper 0:00 23:55:46
netns 0:00 23:55:46
sync_supers 0:00 23:55:46
bdi-default 0:00 23:55:46
kblockd 0:00 23:55:46
khubd 0:00 23:55:46

ymuv ★★★★
()
debasher@laptop:~$ ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
opera           00:34:37 15:37:03
Xorg            00:08:33 15:36:39
deadbeef-main   00:06:54 15:37:06
skype           00:01:52 15:37:02
vacuum          00:01:31 15:37:00
qtpanel         00:00:50 15:36:44
xcompmgr        00:00:38 15:36:44
parcellite      00:00:36 15:36:44
operapluginwrap 00:00:13 17:15:36
ksoftirqd/0     00:00:12 15:35:40
tilda           00:00:11 15:36:44
ksoftirqd/1     00:00:10 15:35:40
usb             00:00:07 15:36:09
kswapd0         00:00:06 15:35:40
openbox         00:00:04 15:36:41
nautilus        00:00:03 17:01:23
NetworkManager  00:00:03 15:36:10
polkitd         00:00:03 15:36:10
nm-applet       00:00:02 15:36:46
Debasher ★★★★★
()
> ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
ntpd            00:06:34   Dec 01
mysqld          00:04:33   Mar 14
miniserv.pl     00:03:45   Jan 30
jbd2/sda3-8     00:03:39   Dec 01
events/0        00:01:28   Dec 01
flush-8:0       00:01:27   Dec 01
kswapd0         00:01:26   Dec 01
init            00:01:21   Dec 01
kblockd/0       00:01:02   Dec 01
rsyslogd        00:00:49   Dec 01
miniserv.pl     00:00:14   Feb 03
cron            00:00:12   Dec 01
sync_supers     00:00:11   Dec 01
bdi-default     00:00:10   Dec 01
miniserv.pl     00:00:07 15:44:44
exim4           00:00:03   Dec 01
ksoftirqd/0     00:00:02   Dec 01
khungtaskd      00:00:01   Dec 01
mysqld_safe     00:00:00   Mar 14
dk-
()
$ ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
VirtualBox      06:36:16 22:22:14
compiz          00:39:52 21:01:44
Xorg            00:19:46 21:01:35
firefox         00:10:05 21:01:54
VirtualBox      00:10:04 22:22:03
VBoxSVC         00:08:58 22:22:04
plugin-containe 00:08:01 21:14:50
VBoxXPCOMIPCD   00:05:15 22:22:04
pulseaudio      00:05:00 21:01:44
soffice.bin     00:02:43 21:29:35
kworker/1:2     00:01:33 07:24:57
ubuntuone-syncd 00:00:54 21:02:16
unity-panel-ser 00:00:45 21:01:49
ktpacpi_nvramd  00:00:42 20:53:22
gnome-settings- 00:00:41 21:01:42
irqbalance      00:00:22 20:53:55
kworker/1:1     00:00:22 15:58:57
dbus-daemon     00:00:21 21:01:42
gtk-window-deco 00:00:19 21:01:45
Deleted
()
COMMAND             TIME  STARTED
Xorg            00:57:17   Mar 31
htop            00:16:27   Mar 31
pidgin          00:15:18   Mar 31
firefox-bin     00:04:18 17:20:38
mate-terminal   00:03:29   Mar 31
pulseaudio      00:02:55   Mar 31
caja            00:01:34   Mar 31
mate-settings-d 00:01:06   Mar 31
openbox         00:00:49   Mar 31
tint2           00:00:29   Mar 31
xscreensaver    00:00:20   Mar 31
bash            00:00:20 02:04:22
pluma           00:00:13   Mar 31
java            00:00:13 18:04:47
ksoftirqd/0     00:00:11   Mar 31
dbus-daemon     00:00:09   Mar 31
mate-volume-con 00:00:07   Mar 31
acpid           00:00:07   Mar 31
NetworkManager  00:00:06   Mar 31

иксы пора закапывать, ага

suslik
()
Ответ на: комментарий от uzbl

Да, пожалуйста.

COMMAND TIME STARTED
chrom <defunct> 00:00:00 22:23:17
X 00:40:23 19:15:57
kwin 00:13:00 19:16:16
chromium 00:05:35 22:23:16
amarok 00:02:38 19:16:42
pulseaudio 00:02:20 19:16:03
ktorrent 00:02:15 19:16:34
dbus-daemon 00:01:58 19:15:55
gajim 00:01:32 20:02:40
chromium 00:01:27 22:39:43
chromium 00:01:24 22:23:25
udisks-daemon 00:01:20 19:16:15
plasma-desktop 00:01:13 19:16:19
chromium 00:01:13 00:01:43
chromium 00:01:07 22:23:21
dropbox 00:00:39 19:15:55
chromium 00:00:25 22:39:31
kfilebox 00:00:20 19:16:38 
lancelot 00:00:12 19:16:39 
mopsene ★★★
()
Ответ на: комментарий от uzbl

shuck@Brutus-F3Sg ~]$ ps -eo comm,time,start |sort -rk2 |head -20
gnome-pty-helpe 00:00:00 16:33:56
nacl_helper_boo 00:00:00 16:30:45
chromium-sandbo 00:00:00 16:30:45
gnome-keyring-d 00:00:00 15:02:43
gnome-keyring-d 00:00:00 15:02:32
at-spi-bus-laun 00:00:00 15:00:07
at-spi-bus-laun 00:00:00 14:59:35
gdm-session-wor 00:00:00 14:59:28
console-kit-dae 00:00:00 14:59:28
accounts-daemon 00:00:00 14:59:28
ext4-dio-unwrit 00:00:00 14:59:09
ext4-dio-unwrit 00:00:00 14:59:00
udisks-daemon 00:00:00 15:35:15
udisks-daemon 00:00:00 15:35:15
dconf-service 00:00:00 14:59:42
led_workqueue 00:00:00 14:59:05
fsnotify_mark 00:00:00 14:58:58
gconf-helper 00:00:00 16:30:45



Arch Linux

a931bw
()
Ответ на: комментарий от uzbl

Теперь вот так:

$ ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
opera           00:07:53 12:12:42
X               00:05:09 12:12:17
plasma-desktop  00:04:08 12:12:34
kwin            00:03:24 12:12:32
dbus-daemon     00:01:59 12:12:16
amarok          00:01:24 12:12:39
q4wine          00:00:57 12:12:39
pulseaudio      00:00:50 12:12:40
udisks-daemon   00:00:47 12:12:30
qutim           00:00:20 17:51:02
ksysguardd      00:00:18 12:12:35
krusader        00:00:16 12:12:40
dbus-daemon     00:00:06 12:12:26
nm-applet       00:00:05 12:26:24
kactivitymanage 00:00:04 12:12:31
kded4           00:00:04 12:12:28
krunner         00:00:03 12:12:39
setroubleshootd 00:00:02 12:12:40
systemd         00:00:02 12:11:31
И всё-таки, как распарсить этот выхлоп? Типа топ потребляющих процессорное время процессов?

carasin ★★★★★
()
COMMAND           TIME  STARTED
transmission-da 867:32   Mar 19
java             27:19   Mar 29
python           17:08   Mar 29
vlc              16:12 16:42:42
firefox          12:51 16:57:34
dbus-daemon       9:06   Mar 19
Xorg              8:16 03:55:39
minidlna          6:59   Mar 19
eggdrop           5:24   Mar 19
mysqld            5:03   Mar 19
apcupsd           4:39   Mar 19
htop              4:38 16:41:36
wrapper           2:48   Mar 29
udisks-daemon     2:10   Mar 19
udisks-daemon     1:36   Mar 19
scsi_eh_3         1:34   Mar 19
transgui          1:30 16:41:46
plasma-desktop    1:29 16:41:00
rsyslogd          1:24   Mar 19

Почему то попали десктопные приложения, например transgui, firefox.

firestarter ★★★☆
()
ps -eo comm,time,start |sort -rk2 |head -20
COMMAND             TIME  STARTED
plugin-containe 15:31:15   Mar 26
dbus-daemon     08:33:56   Feb 12
amarok          08:01:12   Mar 21
X               06:31:42   Mar 21
udisks-daemon   04:41:17   Feb 12
pulseaudio      04:12:46   Mar 21
vlc             03:34:33   Mar 21
kwin            03:12:45   Mar 21
firefox         01:40:11   Mar 21
preload         00:33:04   Feb 12
knotify4        00:31:53   Mar 21
kmix            00:25:57   Mar 21
ksoftirqd/1     00:23:28   Feb 12
ifplugd         00:22:13   Feb 12
smplayer        00:10:54 23:33:59
hald-addon-stor 00:10:51   Feb 12
pppoe           00:09:52   Mar 14
scsi_eh_4       00:07:29   Feb 12
ksoftirqd/0     00:04:59   Feb 12
redgremlin ★★★★★
()

COMMAND           TIME  STARTED
init              2:48   Jan 03
kthreadd          0:00   Jan 03
ksoftirqd/0     198:11   Jan 03
migration/0       0:00   Jan 03
watchdog/0        1:31   Jan 03
migration/1       0:00   Jan 03
ksoftirqd/1      14:37   Jan 03
watchdog/1        1:29   Jan 03
cpuset            0:00   Jan 03
khelper           0:00   Jan 03
netns             0:00   Jan 03
pm                0:00   Jan 03
sync_supers       0:51   Jan 03
bdi-default       0:01   Jan 03
kblockd           0:00   Jan 03
kacpid            0:00   Jan 03
kacpi_notify      0:00   Jan 03
kacpi_hotplug     0:00   Jan 03
kseriod           0:00   Jan 03
visual ★★★
()
└─■ ps -eo comm,time,start | sort -rk2 | head -20
COMMAND             TIME  STARTED
deadbeef-main   00:08:24 16:16:59
firefox         00:07:52 16:17:40
X               00:06:55 16:11:18
plugin-containe 00:04:36 16:23:26
kwin            00:01:36 16:11:33
plasma-desktop  00:01:04 16:11:36
konsole         00:01:00 16:11:45
kopete          00:00:53 16:11:46
kworker/u:8     00:00:13 16:11:03
kworker/u:6     00:00:12 16:11:03
kworker/u:9     00:00:11 16:11:03
thunderbird-bin 00:00:06 16:11:46
dropbox         00:00:05 17:32:19
krunner         00:00:04 16:11:36
ksoftirqd/3     00:00:03 16:11:01
ksoftirqd/2     00:00:03 16:11:01
ksoftirqd/1     00:00:03 16:11:01
ksoftirqd/0     00:00:03 16:11:01
kmozillahelper  00:00:02 16:17:43
hope13 ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.