1 2012-10-12 Richard W.M. Jones <rjones@redhat.com>
5 2012-10-12 Hu Tao <hutao@cn.fujitsu.com>
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:
13 PHYCPU %CPU example_domain
19 RWMJ: I cleaned up this patch a little, but it should be
20 functionally the same.
22 Rename find_usages_from_stats as find_cpu_usages.
23 This is just code motion.
25 2012-10-12 Richard W.M. Jones <rjones@redhat.com>
27 OCaml stable dependencies.
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
34 2012-09-28 Richard W.M. Jones <rjones@redhat.com>
36 Make the main code and exception handling simpler.
38 Better error messages when parsing the init file (RHBZ#836231).
40 Add missing sort order options in --help output (RHBZ#807176).
42 Man page: Add an explanation of columns (RHBZ#834208).
44 man page: Update copyright date.
46 2012-03-06 Richard W.M. Jones <rjones@redhat.com>
52 Document requirements in README file.
54 2012-03-06 Lai Jiangshan <laijs@cn.fujitsu.com>
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.
60 example(old "virt-top -1"):
62 PHYCPU %CPU rhel6 Windows
68 The output almost makes no sense(all the value are just average, not real).
70 This is new implement, it use cpuacct cgroup to gain *real* physical usages
71 via cpuacct cgroup by virDomainGetCPUStats() API.
75 PHYCPU %CPU rhel6 Windows
81 PHYCPU %CPU rhel6 Windows
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
93 use new virDomainGetCPUStats() libvirt-API.
94 add a new function find_usages_from_stats() to gain cpu usages.
96 2011-08-15 Richard W.M. Jones <rjones@redhat.com>
98 Ensure manpages get built when using native compiler (thanks Laurent Léonard).
100 2011-08-12 Richard W.M. Jones <rjones@redhat.com>
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.
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
112 This updates commit daf79631f3eff904ba89297148c4125ac7dfee39.
114 2011-08-11 Richard W.M. Jones <rjones@redhat.com>
116 docs: Explain how to debug libvirt initialization problems (RHBZ#680031).
118 2011-04-02 Richard W.M. Jones <rjones@redhat.com>
120 Pull translations from Transifex.
122 2011-03-08 Richard W.M. Jones <rjones@redhat.com>
124 Fix --end-time option with absolute times.
125 Assume the user enters a local time, and convert it to UTC.
127 This also adds some clarifying comments to the relative time
128 code (but doesn't change that code).
130 Note that the obsolete Calendar1 code is *not* updated by this change.
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.
138 Remove generated man pages from git.
140 2011-03-07 KAMEZAWA Hiroyuki <kamezawa@bluextal.(none)>
142 add memory stats to --csv mode.
143 In csv mode, memory usage in kbytes and %mem against total system
146 2011-03-07 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
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
152 Signged-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
154 2011-03-07 Richard W.M. Jones <rjones@redhat.com>
156 Import virt-top into transifex.
157 http://www.transifex.net/projects/p/virttop/
159 2011-02-02 Richard W.M. Jones <rjones@redhat.com>
161 Update generated man page files.
163 2011-02-02 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
165 Add --block-in-bytes option.
166 This option and the 'B' key toggles block I/O stats between
170 Output is sent to stdout (similar to the top -b option).
172 2011-01-24 Richard W.M. Jones <rjones@redhat.com>
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.
178 The 'usleep' function has been renamed more accurately as 'millisleep'
179 since it sleeps for milliseconds not microseconds.
181 2011-01-06 Richard W.M. Jones <rjones@redhat.com>
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
190 Re-add virt-top/README file.
191 This seems to have been dropped during the hg->git transition.
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
197 man page: Remove excess blank line.
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.
205 http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html
207 Note that this requires OCaml >= 3.11.0.
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:
214 String.sub str 0 (-1)
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.
221 https://bugzilla.redhat.com/show_bug.cgi?id=634435
225 Update generated man pages.
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.
233 Tested with TZ=UTC-05, TZ=UTC and TZ=UTC+05.
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.
238 Update dependencies file.
240 man page: memory option shows total guest memory (RHBZ#647991).
242 man page: Update copyright date and link to web pages.
244 Remove references to xm/xentop manual pages (RHBZ#648186).
245 These Xen tools are obsolete since virsh/virt-top works across
248 2010-09-02 Richard Jones <rjones@redhat.com>
250 Change order of return values from getyx - fixes display of historical CPU.
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
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.
262 2010-06-15 Kiyoto Hashida <khashida@redhat.com>
264 Update Japanese translations (RHBZ#493799).
266 2010-03-05 Yulia <ypoyarko@redhat.com>
268 Updated Russian translations (RHBZ#493799).
270 2010-03-05 Richard Jones <rjones@redhat.com>
272 Newer autoconf adds PACKAGE_URL definition.
274 2010-02-12 Richard Jones <rjones@redhat.com>
276 zh_CN: Remove bogus Plural-Forms line.
278 Japanese: update bogus 'Plural-Forms: Plural-Forms'.
280 2010-02-12 Hajime Taira <htaira@redhat.com>
282 Update Japanese translations (RHBZ#493799).
284 2010-01-28 Richard Jones <rjones@redhat.com>
286 Rename te_IN.po -> te.po (Piotr Drąg).
288 Telugu translation added by Krishna Babu K (RHBZ#493799c32)
290 Polish translation updated by Piotr Drag (RHBZ#493799c31)
292 Portuguese translation added by Glaucia Cintra (RHBZ#493799c30)
294 Chinese translation updated by Wei Liu (RHBZ#493799c29)
296 Oriya translation added by Manoj Kumar Giri (RHBZ#493799c28)
298 Spanish translation updated by Daniel Cabrera (RHBZ#493799c27)
300 2009-12-30 Richard Jones <rjones@redhat.com>
302 Update to ocaml-autoconf macros 1.1
304 Fix detection of ocaml-findlib.
306 2009-10-06 Richard Jones <rjones@trick.home.annexia.org>
308 HACKING file, update (C) messages.
312 Remove extra spaces after s_ and f_ operators.
314 Safer curses functions.
315 Add safer curses functions which don't require use of dangerous
318 Replace failwith (sprintf...) with failwithf
320 Remove -w s and fix so it compiles without warnings.
322 Remove NSIS installer.
324 Change over to using ocaml.m4 macros.
326 2009-10-05 Richard Jones <rjones@trick.home.annexia.org>
330 TODO.virt-top renamed as TODO
334 Update manpage with --version option.
336 Add virt-top --version command line option.
338 Add the real virt-top version to help display.
340 Version 1.0.4 for release.
342 Fix changelog and manifest files.
344 gitlog-to-changelog: If the date field is empty, don't barf.
346 Added Jim Meyering's gitlog-to-changelog program.
348 Add total hardware memory field (RHBZ#521785)
350 Don't need to explicitly link against ncurses.
354 Add Japanese to list of translations.
356 Use msgfmt to generate *.mo files correctly.
358 Update documentation.
362 Rename .hgignore -> .gitignore, update dependencies.