Version 1.0.8.
[virt-top.git] / ChangeLog
1 2012-10-12  Richard W.M. Jones  <rjones@redhat.com>
2
3         Version 1.0.8.
4
5 2012-10-12  Hu Tao  <hutao@cn.fujitsu.com>
6
7         show `vcpu usages' by `virt-top -1'
8         Before this patch, `virt-top -1' shows total cpu usages
9         which euqal to `vcpu usages' + `hypervisor usages'. This
10         patch adds another column for domains showing `vcpu
11         usages'. An example is:
12
13         PHYCPU %CPU example_domain
14            0   10.4 10.4  0.8
15            1    1.6  1.6  1.4
16            2    2.6  2.6  2.6
17            3    0.0  0.0  0.1
18
19         RWMJ: I cleaned up this patch a little, but it should be
20         functionally the same.
21
22         Rename find_usages_from_stats as find_cpu_usages.
23         This is just code motion.
24
25 2012-10-12  Richard W.M. Jones  <rjones@redhat.com>
26
27         OCaml stable dependencies.
28
29         Remove D.get_cpu_stats second parameter.
30         In upstream ocaml-libvirt, this second parameter has been removed,
31         because it was found that nr_pcpus can be found by calling the libvirt
32         API directly.
33
34 2012-09-28  Richard W.M. Jones  <rjones@redhat.com>
35
36         Make the main code and exception handling simpler.
37
38         Better error messages when parsing the init file (RHBZ#836231).
39
40         Add missing sort order options in --help output (RHBZ#807176).
41
42         Man page: Add an explanation of columns (RHBZ#834208).
43
44         man page: Update copyright date.
45
46 2012-03-06  Richard W.M. Jones  <rjones@redhat.com>
47
48         Version 1.0.7.
49
50         Ignore aclocal.m4.
51
52         Document requirements in README file.
53
54 2012-03-06  Lai Jiangshan  <laijs@cn.fujitsu.com>
55
56         virt-top: correct "virt-top -1" command via cpuacct cgroup
57         Old "virt-top -1" is not correct, its output is generated by guess:
58         use average usage for pinned physical CPUs.
59
60         example(old "virt-top -1"):
61
62         PHYCPU %CPU rhel6  Windows
63            0    0.6  0.1=   0.5=
64            1    0.6  0.1=   0.5=#
65            2    0.6  0.1=   0.5=
66            3    0.6  0.1=#  0.5=
67
68         The output almost makes no sense(all the value are just average, not real).
69
70         This is new implement, it use cpuacct cgroup to gain *real* physical usages
71         via cpuacct cgroup by virDomainGetCPUStats() API.
72
73         new result:
74
75         PHYCPU %CPU rhel6  Windows
76            0    1.3  0.3     1.0
77            1    2.3  0.3     2.0
78            2    2.2  0.5     1.7
79            3    2.5  0.4     2.1
80
81         PHYCPU %CPU rhel6  Windows
82            0    1.7  0.4     1.3
83            1    3.6  1.0     2.7
84            2    1.6  0.4     1.2
85            3    4.8  3.1     1.7
86
87         Note: average flag(=) is dropped, there is not average value in here.
88         Note: running flag(#) is dropped, because if the value is not empty,
89               it means the guest was once running in the physical CPU in this period
90               between updates.
91
92         Changed from V3:
93                 use new virDomainGetCPUStats() libvirt-API.
94                 add a new function find_usages_from_stats() to gain cpu usages.
95
96 2011-08-15  Richard W.M. Jones  <rjones@redhat.com>
97
98         Ensure manpages get built when using native compiler (thanks Laurent Léonard).
99
100 2011-08-12  Richard W.M. Jones  <rjones@redhat.com>
101
102         Version 1.0.6.
103
104         Update MANIFEST and fix 'make dist'.
105         make dist now copies the generated manual pages into the tarball, so
106         that we don't have to keep these generated files in git.
107
108         Fix ordering of csv_mode and stream_mode in tuple.
109         Note that this bug could have been avoided by using a struct instead
110         of a tuple here.
111
112         This updates commit daf79631f3eff904ba89297148c4125ac7dfee39.
113
114 2011-08-11  Richard W.M. Jones  <rjones@redhat.com>
115
116         docs: Explain how to debug libvirt initialization problems (RHBZ#680031).
117
118 2011-04-02  Richard W.M. Jones  <rjones@redhat.com>
119
120         Pull translations from Transifex.
121
122 2011-03-08  Richard W.M. Jones  <rjones@redhat.com>
123
124         Fix --end-time option with absolute times.
125         Assume the user enters a local time, and convert it to UTC.
126
127         This also adds some clarifying comments to the relative time
128         code (but doesn't change that code).
129
130         Note that the obsolete Calendar1 code is *not* updated by this change.
131
132         docs: Fix documentation for virt-top -c option.
133         Because of changes in libvirt, this no longer connects to Xen by
134         default.  Instead the default is to connect to the libvirt default
135         hypervisor (which could be Xen, KVM or others).  Update the --help
136         documentation and manual page accordingly.
137
138         Remove generated man pages from git.
139
140 2011-03-07  KAMEZAWA Hiroyuki  <kamezawa@bluextal.(none)>
141
142         add memory stats to --csv mode.
143         In csv mode, memory usage in kbytes and %mem against total system
144         memory is shown.
145
146 2011-03-07  KAMEZAWA Hiroyuki  <kamezawa.hiroyu@jp.fujitsu.com>
147
148         Record memory statistics information to 'rd' object.
149         This helps to share the calculation (between modes) and
150         will help to show memory statistics in --csv mode
151
152         Signged-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
153
154 2011-03-07  Richard W.M. Jones  <rjones@redhat.com>
155
156         Import virt-top into transifex.
157         http://www.transifex.net/projects/p/virttop/
158
159 2011-02-02  Richard W.M. Jones  <rjones@redhat.com>
160
161         Update generated man page files.
162
163 2011-02-02  KAMEZAWA Hiroyuki  <kamezawa.hiroyu@jp.fujitsu.com>
164
165         Add --block-in-bytes option.
166         This option and the 'B' key toggles block I/O stats between
167         requests and bytes.
168
169         Add --stream flag.
170         Output is sent to stdout (similar to the top -b option).
171
172 2011-01-24  Richard W.M. Jones  <rjones@redhat.com>
173
174         Obey virt-top --end-time down to near millisecond accuracy (RHBZ#637964).
175         Adjust the final delay down so that the --end-time option is obeyed
176         down to near millisecond accuracy.
177
178         The 'usleep' function has been renamed more accurately as 'millisleep'
179         since it sleeps for milliseconds not microseconds.
180
181 2011-01-06  Richard W.M. Jones  <rjones@redhat.com>
182
183         Version 1.0.5.
184
185         Add aclocal.m4 file to git.
186         This file is sort of generated, but at the moment only has
187         a single line which includes m4/ocaml.m4, that is vital for
188         the build.
189
190         Re-add virt-top/README file.
191         This seems to have been dropped during the hg->git transition.
192
193         Document background noise of RX packets from bridges (RHBZ#647987).
194         For more information see:
195         https://bugzilla.redhat.com/show_bug.cgi?id=647987#c9
196
197         man page: Remove excess blank line.
198
199         main: Record and print full exception stack traces.
200         This turns on stack trace recording unconditionally (the same
201         effect as if OCAMLRUNPARAM=b was always supplied), and also prints
202         stack traces to the log file if there is an exception.
203
204         See also:
205         http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html
206
207         Note that this requires OCaml >= 3.11.0.
208
209         Fix pad function to work for negative widths (RHBZ#634435).
210         The pad function is supposed to pad a string to a width.  Under some
211         circumstances, the width parameter could be negative resulting in a
212         call to String.sub such as:
213
214           String.sub str 0 (-1)
215
216         which caused an exception to be thrown and not caught, causing
217         virt-top to exit.  Fix the pad function to return an empty string if
218         width <= 0 instead of throwing an exception.
219
220         See also:
221         https://bugzilla.redhat.com/show_bug.cgi?id=634435
222
223         Update dependencies.
224
225         Update generated man pages.
226
227         Fix virt-top --end-time option when TZ<>UTC (RHBZ#637964).
228         Return the end time as seconds since 1970, and don't adjust it
229         for timezone.  In the main module the end time is compared against
230         the result of Unix.gettimeofday, which is also seconds since 1970,
231         so the comparison now works.
232
233         Tested with TZ=UTC-05, TZ=UTC and TZ=UTC+05.
234
235         NB: This has not been tested against ocaml-calendar 1.x, although
236         that version of calendar is obsolete and no one should be using it.
237
238         Update dependencies file.
239
240         man page: memory option shows total guest memory (RHBZ#647991).
241
242         man page: Update copyright date and link to web pages.
243
244         Remove references to xm/xentop manual pages (RHBZ#648186).
245         These Xen tools are obsolete since virsh/virt-top works across
246         all hypervisors.
247
248 2010-09-02  Richard Jones  <rjones@redhat.com>
249
250         Change order of return values from getyx - fixes display of historical CPU.
251         In this commit:
252         http://cvs.savannah.gnu.org/viewvc/ocaml-tmk/functions.c?root=ocaml-tmk&r1=1.2&r2=1.3
253         Sam changed (fixed) the order that the coordinates are returned
254         from the ncurses 'getyx' call.  Since this commit was made 3 years
255         ago it should be safe to assume everyone is using the new ocaml-ncurses
256         by now.
257
258         This meant the historical %CPU was being displayed off the bottom of
259         the screen instead of on the top row at the right.  Now it is displayed
260         in the correct place.
261
262 2010-06-15  Kiyoto Hashida  <khashida@redhat.com>
263
264         Update Japanese translations (RHBZ#493799).
265
266 2010-03-05  Yulia  <ypoyarko@redhat.com>
267
268         Updated Russian translations (RHBZ#493799).
269
270 2010-03-05  Richard Jones  <rjones@redhat.com>
271
272         Newer autoconf adds PACKAGE_URL definition.
273
274 2010-02-12  Richard Jones  <rjones@redhat.com>
275
276         zh_CN: Remove bogus Plural-Forms line.
277
278         Japanese: update bogus 'Plural-Forms: Plural-Forms'.
279
280 2010-02-12  Hajime Taira  <htaira@redhat.com>
281
282         Update Japanese translations (RHBZ#493799).
283
284 2010-01-28  Richard Jones  <rjones@redhat.com>
285
286         Rename te_IN.po -> te.po (Piotr Drąg).
287
288         Telugu translation added by Krishna Babu K (RHBZ#493799c32)
289
290         Polish translation updated by Piotr Drag (RHBZ#493799c31)
291
292         Portuguese translation added by Glaucia Cintra (RHBZ#493799c30)
293
294         Chinese translation updated by Wei Liu (RHBZ#493799c29)
295
296         Oriya translation added by Manoj Kumar Giri (RHBZ#493799c28)
297
298         Spanish translation updated by Daniel Cabrera (RHBZ#493799c27)
299
300 2009-12-30  Richard Jones  <rjones@redhat.com>
301
302         Update to ocaml-autoconf macros 1.1
303
304         Fix detection of ocaml-findlib.
305
306 2009-10-06  Richard Jones  <rjones@trick.home.annexia.org>
307
308         HACKING file, update (C) messages.
309
310         Update PO files.
311
312         Remove extra spaces after s_ and f_ operators.
313
314         Safer curses functions.
315         Add safer curses functions which don't require use of dangerous
316         ignore() function.
317
318         Replace failwith (sprintf...) with failwithf
319
320         Remove -w s and fix so it compiles without warnings.
321
322         Remove NSIS installer.
323
324         Change over to using ocaml.m4 macros.
325
326 2009-10-05  Richard Jones  <rjones@trick.home.annexia.org>
327
328         Updated MANIFEST.
329
330         TODO.virt-top renamed as TODO
331
332         Typo fixed.
333
334         Update manpage with --version option.
335
336         Add virt-top --version command line option.
337
338         Add the real virt-top version to help display.
339
340         Version 1.0.4 for release.
341
342         Fix changelog and manifest files.
343
344         gitlog-to-changelog: If the date field is empty, don't barf.
345
346         Added Jim Meyering's gitlog-to-changelog program.
347
348         Add total hardware memory field (RHBZ#521785)
349
350         Don't need to explicitly link against ncurses.
351
352         Update PO files.
353
354         Add Japanese to list of translations.
355
356         Use msgfmt to generate *.mo files correctly.
357
358         Update documentation.
359
360         Update dependencies.
361
362         Rename .hgignore -> .gitignore, update dependencies.