Debian Bug report logs - #574069
kvm: wish it would change it's argv[0]

Package: qemu-kvm; Maintainer for qemu-kvm is Michael Tokarev <mjt@tls.msk.ru>; Source for qemu-kvm is src:qemu.

Reported by: Russell Coker <russell@coker.com.au>

Date: Tue, 16 Mar 2010 02:57:01 UTC

Severity: wishlist

Done: Michael Tokarev <mjt@tls.msk.ru>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Jan Lübbe <jluebbe@debian.org>:
Bug#574069; Package kvm. (Tue, 16 Mar 2010 02:57:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Russell Coker <russell@coker.com.au>:
New Bug report received and forwarded. Copy sent to Jan Lübbe <jluebbe@debian.org>. (Tue, 16 Mar 2010 02:57:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Russell Coker <russell@coker.com.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: kvm: wish it would change it's argv[0]
Date: Tue, 16 Mar 2010 13:53:59 +1100
Package: kvm
Version: 72+dfsg-5~lenny5
Severity: normal

If you have multiple kvm virtual machines running then programs such as top(1)
display them all as "kvm".  It would be really handy if top could show which
virtual machine is the one that is hogging the CPU.

If there was an option "-name foo" which would change the value of argv[0] to
"kvm-foo" then the output of top(1) would be more useful.

It seems that with the way command line parameters are used in Linux, there is
a fixed amount of memory for them which may be overwritten by the application.
The string "kvm\0-name foo" is longer than "kvm-foo" so such a change would not
risk running off the end of an array.  NB It doesn't matter where the -name
option appeared on the command-line, the command-line could be compressed and
re-written without the -name option.




Information forwarded to debian-bugs-dist@lists.debian.org, Jan Lübbe <jluebbe@debian.org>:
Bug#574069; Package kvm. (Wed, 17 Mar 2010 20:36:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Jan Lübbe <jluebbe@debian.org>. (Wed, 17 Mar 2010 20:36:07 GMT) Full text and rfc822 format available.

Message #10 received at 574069@bugs.debian.org (full text, mbox):

From: Michael Tokarev <mjt@tls.msk.ru>
To: 574063@bugs.debian.org, 574051@bugs.debian.org, 574073@bugs.debian.org, 574069@bugs.debian.org
Subject: reassign kvm bugs to qemu-kvm
Date: Wed, 17 Mar 2010 23:33:13 +0300
reassign 574063 qemu-kvm
reassign 574051 qemu-kvm
reassign 574073 qemu-kvm
reassign 574069 qemu-kvm
thanks

Reassigning (some) bugs against kvm package to qemu-kvm.
The version in Lenny is frozen and is too old and buggy
to be useful.  In squeeze+ the package is qemu-kvm, not
kvm.  And all the further work will be done there, not
in kvm in Lenny.  Thanks.

/mjt




Bug reassigned from package 'kvm' to 'qemu-kvm'. Request was from Michael Tokarev <mjt@tls.msk.ru> to control@bugs.debian.org. (Wed, 17 Mar 2010 20:36:15 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions kvm/72+dfsg-5~lenny5. Request was from Michael Tokarev <mjt@tls.msk.ru> to control@bugs.debian.org. (Wed, 17 Mar 2010 20:36:16 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Michael Tokarev <mjt@tls.msk.ru> to control@bugs.debian.org. (Fri, 19 Mar 2010 08:12:02 GMT) Full text and rfc822 format available.

Reply sent to Michael Tokarev <mjt@tls.msk.ru>:
You have taken responsibility. (Fri, 19 Mar 2010 08:12:09 GMT) Full text and rfc822 format available.

Notification sent to Russell Coker <russell@coker.com.au>:
Bug acknowledged by developer. (Fri, 19 Mar 2010 08:12:09 GMT) Full text and rfc822 format available.

Message #21 received at 574069-done@bugs.debian.org (full text, mbox):

From: Michael Tokarev <mjt@tls.msk.ru>
To: Russell Coker <russell@coker.com.au>
Cc: 574069-done@bugs.debian.org
Subject: Re: kvm: wish it would change it's argv[0]
Date: Fri, 19 Mar 2010 11:09:29 +0300
severity 574069 wishlist
thanks

Russell Coker wrote:
> Package: kvm
> Version: 72+dfsg-5~lenny5
> Severity: normal
> 
> If you have multiple kvm virtual machines running then programs such as top(1)
> display them all as "kvm".  It would be really handy if top could show which
> virtual machine is the one that is hogging the CPU.
> 
> If there was an option "-name foo" which would change the value of argv[0] to
> "kvm-foo" then the output of top(1) would be more useful.

In more recent version of kvm (qemu-kvm), available as part of
backports.org too, the -name argument has been extended:

-name string1[,process=string2]
    set the name of the guest string1 sets the window title
    and string2 the process name (on Linux)

So I'm closing this bug.

Thanks!

/mjt




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 17 Apr 2010 07:35:56 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 16:40:32 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.