• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MakefileH A D24-Jul-20093.8 KiB14981

READMEH A D23-Jul-20097.5 KiB224159

config.guessH A D24-Jul-200943.8 KiB1,5271,315

config.subH A D24-Jul-200932.6 KiB1,6591,514

configureH A D08-Feb-20071.4 KiB8349

gkrelltop.cH A D03-May-202227.3 KiB833555

gkrelltop.hH A D18-Jul-20091.5 KiB7457

gkrelltopd.cH A D16-Jul-20092.2 KiB11174

support.hH A D08-Feb-20074.8 KiB8175

top_three.cH A D03-May-202217.3 KiB683411

ttest.cH A D21-Jul-20093.7 KiB150104

README

1Description
2-----------
3gkrelltop is a plugin for gkrellm. It monitors and shows
4the top three cpu, memory, and IO consuming processes.
5The process name is shown on the main krell along with
6a bar visually marking the percentage used by that process.
7
8Uses of this plugin can be various from monitoring enthusiasts that want
9to know at all times what their system is doing, to simple laptop users
10which may not want the cpu to be at 100% at all times for battery or heat
11related issues.
12
13Moving the mouse over the krell panel causes a tooltip to appear,
14showing more info such as the PID and processor usage percentage.
15The refresh of the top three will be suspended for about 2 seconds,
16when mouse first moves over.
17
18Upon clicking, the krell will rotate between CPU, Memory, and IO monitoring
19of the processes. Upon rightclicking, the config panel will come up.
20
21Upon Ctrl-MiddleClick or Double-MiddleClick on one of the process names
22in the krell, you will be asked if you want to kill (signal -9) that process.
23This way if a program is going crazy, you can not only see it clearly,
24but also kill it right there if necessary. Remember to enable 'Show nice
25processes' from the configuration as well, otherwise niced processes
26will not appear.
27
28It works for gkrellm 1.* and 2.* by trying to autodetect if there is a
29gtk+2.0 installed. But if you have problems, please let me know.
30It works for linux and freebsd. For the makefile parameters, read below.
31
32With the release of gkrellm 2.2.0 the gkrellmd server can have plugins.
33Thanks to Bill Willson, gkrelltop now has server plugin capability, which
34I hope will make a more useful plugin. Note that gkrellm 2.2.0 will need
35to be installed in order to compile the gkrelltopd server plugin.
36You will need the libgtk package (ex. libgtk2.0-dev in debian) to compile
37these sources.
38
39
40To compile for gkrellm 1 or 2 simply do:
41------------------------------------
42    make
43
44or make all, or make gkrelltop and it will produce gkrelltop.so in the
45directory. To try it out do:
46
47    gkrellm -p gkrelltop.so
48
49To copy this in your plugin directory, for gkrellm do:
50    make install
51
52To make the gkrelltopd server plugin using glib 1.2:
53    make glib12=yes
54
55To make and install the server plugin only (you may optionally do glib12=yes):
56    make server
57    make install-server
58
59After the gkrelltopd server plugin is installed, it must be enabled by
60adding a line to a gkrellmd.conf file:
61
62    plugin-enable gkrelltopd
63
64To check that it installs properly, do a test run of gkrellmd like so:
65
66    gkrellmd -plog
67
68To make the debian sources package do:
69
70    make deb
71
72To make a debian .deb package do:
73
74    fakeroot debian/rules binary
75
76
77If make fails then compile the modules manually (look at the Makefile to
78find out what is needed).
79
80To only test the top_three.c functionality from a commandline example tool,
81you can do:
82
83    make ttest
84
85and then run
86
87    ./ttest
88
89which will constantly dump the 3 most active processes on the terminal.
90
91
92Notes
93-----
94Notice to FreeBSD 5.x users: in the more recent versions of FreeBSD (ex. 5.x)
95/proc is not mounted by default (at least some people have reported this),
96so in order for this plugin to work correctly, you need to make sure
97/proc is mounded.
98
99Notes from the Makefile:
100
101   For linux need the -DLINUX as a CFLAGS parameter
102
103   to compile for FREEBSD the CFLAGS parameter
104   needs to be -DFREEBSD
105
106   I have attempted to detect the os by the OSFLAG variable
107   NOTE that it will work only for LINUX or FREEBSD
108
109   if you think it should work for your os than substituting
110   your $(OSFLAG) will not quite do the trick because the wmtop code
111   (the three_top.c file) only recognises those two (LINUX and FREEBSD)
112   parameters. Let me know if the more recent versions of wmtop
113   support more OS.
114
115Testing gkrellm 2.2.0:
116----------------------
117
118To test for gkrellm 2.2.0 and gkrellmd 2.2.0 (which should be installed)
119follow the steps below.
120
121Run gkrellmd with gkrelltopd.so:
122
123    $ gkrellmd -p gkrelltopd.so -plog
124
125Then on the same machine, run:
126
127    $ gkrellm -s localhost -p gkrelltop.so
128
129And it should be displaying data from the gkrellmd server.
130
131To verify that gkrellmd is sending gkrelltop data, for about
13210 seconds run:
133
134    $ gkrellm -s localhost -p gkrelltop.so -d 0x1000 > somelog
135
136then quit gkrellm and search in the somelog file for gkrelltop lines.
137
138
139Credits:
140--------
141- written by Adi Zaimi adizaimi-at-users.sourceforge.net
142- based on Wmtop -- WindowMaker process view dock app
143- Thanks to Bill Wilson for adding gkrellmd support
144- Licensed under GNU GPL
145
146
147Changelog:
148----------
149
150Version 2.2.13 20090721
151  Added temporary delay to refresh when mouseover so user has a chance to
152     double click.
153  Refactored code to speed up reading /proc and to find processes in list
154
155Version 2.2.12 20090709
156  Fixed bug that showed a process twice, if thresholding was on
157     and it was the only process to exceed the threshold.
158  Added support to show top processes consuming IO,
159     which works with linux > 2.6.20
160
161Version 2.2.11 20071225
162  Fixed exclusions problem when a process which was previously set
163     to be excluded, would not reappear after removing it from
164     the exclusion list.
165     Thanks to Kan Sasaki <sasaki-at-fcc.ad.jp> for providing a patch
166     to fix the above.
167
168Version 2.2.10 20070721
169  Fixed bug which caused crash with floating point exception error
170     in calculating master_modulus.
171     Thanks to Ethan Romander <eromander-at-prodigy.net> for finding this bug
172     and providing a patch.
173  Fixed Makefile to have all parts compile with -fPIC because it failed
174     to compile on some environments. Thanks to Kurt Roeckx <kurt-at-roeckx.be>
175     for pointing the error, and to Julien Cristau <jcristau-at-debian.org>
176     for fixing it in the Debian repository.
177
178Version 2.2.9 20070213
179  Fixed bug with process displaying twice when there was a threshold.
180     Thanks to Jerome UZEL <jerome.uzel-at-wanadoo.fr> for spotting the bug.
181  Put back the standard panel since people want skins to apply.
182
183Version 2.2.8 20070207
184  Added the sort by memory utilization capability. Clicking on the plugin
185     will switch between displaying memory utilization and cpu utilization.
186  Send kill signal to process on double-middleclick.
187  Made a debian proper configuration.
188
189Version 2.2.7 20070120
190  Made the krells into panels so now i can display between 1 and 3
191     panels with the top processes.
192
193Version 2.2.6 20040703
194  Tooltips show all the necessary process information for which
195     there's no room in the main view.
196
197Version 2.2.5 20040617
198  Added graphical representations for the percent processor usage
199  Added support for a regexp exclusion of process names
200
201Version 2.2.4 20040529
202  Fixed the show-nice-processes capability
203
204Version 2.2.3 20040527
205  Made functional the configuration tabs:
206     Now one can show only processes above a certain threshold.
207     One can have the update frequency from once in 5 seconds
208     to the gkrell_update value.
209     One can disable/enable displaying the nice processes in the list.
210  Change Makefile so now *only* produces gkrelltop.so:
211     No more differentiating between gkrelltop2.so and the older gkrellm 1.*
212     version. If there are people that use the 1.* version, they can still
213     use this program (i hope).
214
215
216Version 2.2.2 20040520
217  Added gkrellmd support (Bill Wilson)
218  Added debian support. Now running 'dpkg-buildpackage -rfakeroot -uc -us'
219     or 'make deb' will create a debian package.
220
221
222Versions 2.2.1 and earlier
223  Ported it to gkrellm 2.0
224