Re: CPU hotplug add seems broken

2010-01-11 Thread Ryota Ozaki
2010/1/10 Gleb Natapov g...@redhat.com: On Sun, Jan 10, 2010 at 05:33:02PM +0900, Ryota Ozaki wrote: [...] I see. Anyway I think we need some workaround to avoid segfault. Disabling cpu_set command for qemu-kvm-0.12 is good enough workaround. Agree. I'll send a patch. but ACPI code

Re: CPU hotplug add seems broken

2010-01-11 Thread Ryota Ozaki
On Mon, Jan 11, 2010 at 6:32 PM, Gleb Natapov g...@redhat.com wrote: On Mon, Jan 11, 2010 at 06:24:32PM +0900, Ryota Ozaki wrote: 2010/1/10 Gleb Natapov g...@redhat.com: [...] May I ask what do you need it for? Oh sorry, actually I have not so strong desire on cpu hotplug but I have

Re: CPU hotplug add seems broken

2010-01-11 Thread Ryota Ozaki
On Mon, Jan 11, 2010 at 7:23 PM, Avi Kivity a...@redhat.com wrote: On 01/11/2010 11:24 AM, Ryota Ozaki wrote: The problem is that there is no standard way to hotplug CPUs in a PC. Linux implements the way UNISYS happen to do it, but no other system do it like that. Windows implements

[PATCH][STABLE-0.12] qemu-kvm: Disable cpu_set command to avoid segfault

2010-01-11 Thread Ryota Ozaki
CPU hotplug feature is lost in this version. Even worse cpu_set qemu command may cause segfault. This patch fix the problem by just disabling it. It is enough for the stable branch. Signed-off-by: Ryota Ozaki ozaki.ry...@gmail.com Cc: Gleb Natapov g...@redhat.com --- monitor.c |4 +++- 1

Re: Memory hotplug

2010-01-10 Thread Ryota Ozaki
Hi Marcelo and guys, On Wed, Jan 6, 2010 at 11:24 PM, Ryota Ozaki ozaki.ry...@gmail.com wrote: On Wed, Jan 6, 2010 at 10:59 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Wed, Jan 06, 2010 at 10:07:25PM +0900, Ryota Ozaki wrote: [...] I know virtio balloon can changes amount of guest

CPU hotplug add seems broken

2010-01-08 Thread Ryota Ozaki
Hi all, I've tried CPU hotplug with latest qemu-kvm.git code, and got segmentation fault. Call trace of the qemu-system-x86_64 is like this: (gdb) where #0 0x003cec80c280 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0042fd72 in on_vcpu (env=0x2b24080, func=0x42ffd7

Memory hotplug

2010-01-06 Thread Ryota Ozaki
Hi all, I would like to know the state of guest memory hotplug support. Is the feature already supported? Otherwise, is anyone working on that? I know virtio balloon can changes amount of guest memory online, however, it can change only under initially assigned amount of memory. I want to

Re: Memory hotplug

2010-01-06 Thread Ryota Ozaki
On Wed, Jan 6, 2010 at 10:59 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Wed, Jan 06, 2010 at 10:07:25PM +0900, Ryota Ozaki wrote: Hi all, I would like to know the state of guest memory hotplug support. Is the feature already supported? No. Otherwise, is anyone working

[PATCH -tip] sched, cpuacct: fix niced guest time accounting

2009-10-23 Thread Ryota Ozaki
the patch adds 'guest_nice' to cpuacct. The value provides niced guest cpu time which is like 'nice' to 'user'. The original discussions can be found here. http://www.mail-archive.com/kvm@vger.kernel.org/msg23982.html http://www.mail-archive.com/kvm@vger.kernel.org/msg23860.html Signed-off-by: Ryota

Re: [PATCH -tip] sched, cpuacct: fix niced guest time accounting

2009-10-23 Thread Ryota Ozaki
On Fri, Oct 23, 2009 at 8:19 PM, Ingo Molnar mi...@elte.hu wrote: your patch is line-wrapped and does not apply (possibly due to more whitespace damage). Apologies for my bungle. I've resent the patch via git-send-email. Thanks, ozaki-r -- To unsubscribe from this list: send the line

Re: [PATCH] sched, cpuacct: fix niced guest time accounting

2009-10-22 Thread Ryota Ozaki
On Thu, Oct 22, 2009 at 6:47 PM, Avi Kivity a...@redhat.com wrote: On 10/20/2009 05:00 PM, Ryota Ozaki wrote: Hi Avi, This is the patch we discussed earlier. Please review it. It looks good to me. BTW, should this be sent to lkml as well? In fact, it should go through tip.git

[PATCH -tip] sched, cpuacct: fix niced guest time accounting

2009-10-22 Thread Ryota Ozaki
.html http://www.mail-archive.com/kvm@vger.kernel.org/msg23860.html Thanks, ozaki-r From 2be4eb881b35a879b15f4ac58f117455d10535fa Mon Sep 17 00:00:00 2001 From: Ryota Ozaki ozaki.ry...@gmail.com Date: Tue, 20 Oct 2009 22:41:12 +0900 Subject: [PATCH] sched, cpuacct: fix niced guest time accounting

Re: nice value is ignored on cpu time accounting of a guest?

2009-10-20 Thread Ryota Ozaki
On Tue, Oct 20, 2009 at 2:21 PM, Avi Kivity a...@redhat.com wrote: On 10/19/2009 06:46 PM, Ryota Ozaki wrote: Hi, I have a question on cputime accounting of a guest. CPU time of a guest is always accounted as 'user' time of cpustat even if nice value of the guest is higher than 0

Re: nice value is ignored on cpu time accounting of a guest?

2009-10-20 Thread Ryota Ozaki
On Tue, Oct 20, 2009 at 4:34 PM, Avi Kivity a...@redhat.com wrote: On 10/20/2009 04:27 PM, Ryota Ozaki wrote: Well, like this?         /* Add user time to cpustat. */         tmp = cputime_to_cputime64(cputime);         if (TASK_NICE(p)  0) {                 cpustat-nice = cputime64_add

[PATCH] sched, cpuacct: fix niced guest time accounting

2009-10-20 Thread Ryota Ozaki
Hi Avi, This is the patch we discussed earlier. Please review it. BTW, should this be sent to lkml as well? Regards, ozaki-r From 8aea0f1a9acc891d1208bc462a05797765451ab4 Mon Sep 17 00:00:00 2001 From: Ryota Ozaki ozaki.ry...@gmail.com Date: Tue, 20 Oct 2009 22:41:12 +0900 Subject: [PATCH

nice value is ignored on cpu time accounting of a guest?

2009-10-19 Thread Ryota Ozaki
Hi, I have a question on cputime accounting of a guest. CPU time of a guest is always accounted as 'user' time of cpustat even if nice value of the guest is higher than 0. Is there a reason to do so? I think the cpu time of the guest should be accounted into 'nice' as same as a normal process. Am

Re: [PATCH] expose per-vm statistics via debugfs

2009-08-20 Thread Ryota Ozaki
On Thu, Aug 20, 2009 at 9:09 PM, Avi Kivitya...@redhat.com wrote: On 08/19/2009 03:53 PM, Ryota Ozaki wrote: Hi, This patch let kvm exposes per-vm statistics about such as the total number of vm exits, via debugfs. Existing kvm already collects the per-vm statistics, but it has

[PATCH] expose per-vm statistics via debugfs

2009-08-19 Thread Ryota Ozaki
, it should be familiar with online operations, e.g., dynamic adaptation of assigning vm resources using the statistics. Note that this patch requires a trivial modification to kvm_stat script. Once this patch is accepted I will send a patch for it. Thanks, ozaki-r Signed-off-by: Ryota Ozaki

Re: how increase/decrease ram on running vm ?

2008-12-26 Thread Ryota OZAKI
Hi, http://www.linux-kvm.com/content/memory-ballooning-feature-coming-soon-kvm This page might help you. Regards, ozaki-r 2008/12/26 Василец Дмитрий d.vasil...@peterhost.ru: how increase/decrease ram on running vm ? i found virtio_balloon module , but don't know how it work. -- To

Re: how increase/decrease ram on running vm ?

2008-12-26 Thread Ryota OZAKI
Have you tried decreasing memory? AFAIK, current ballooning cannot increase memory. Regards, ozaki-r 2008/12/27 Василец Дмитрий d.vasil...@peterhost.ru: i read this , but i haven't balloon in cli. В Птн, 26/12/2008 в 23:25 +0900, Ryota OZAKI пишет: Hi, http://www.linux-kvm.com/content

Re: how increase/decrease ram on running vm ?

2008-12-26 Thread Ryota OZAKI
2008/12/27 Ryota OZAKI ozaki.ry...@gmail.com: Have you tried decreasing memory? AFAIK, current ballooning cannot increase memory. oops, i mean ballooning cannot increase memory over the amount of memory specified in qemu/kvm arguments. Regards, ozaki-r 2008/12/27 Василец Дмитрий d.vasil

Re: [PATCH 0/4] ksm - dynamic page sharing driver for linux v2

2008-11-20 Thread Ryota OZAKI
2008/11/20 Izik Eidus [EMAIL PROTECTED]: ציטוט Izik Eidus: ציטוט Ryota OZAKI: Hi Izik, I've tried your patch set, but ksm doesn't work in my machine. I compiled linux patched with the four patches and configured with KSM and KVM enabled. After boot with the linux, I run two VMs running

Re: kvm 76 - open /dev/kvm: No such device or address

2008-10-08 Thread Ryota OZAKI
# dir kvm crwxrwxrwx 1 root kvm 250, 0 2008-10-07 18:22 kvm Strange. /dev/kvm should be a character device has 10 major and 232 minor numbers. Deleting /dev/kvm and doing 'mknod /dev/kvm c 10 232' would help you. Regards, ozaki-r 2008/10/8 Matias Aguirre [EMAIL PROTECTED]: Dor Laor wrote:

[PATCH] kvm: user: Call pthread_join only to created threads.

2008-10-04 Thread Ryota OZAKI
Hi, This patch fixes a bug in kvmtrace. Thanks, ozaki-r From 4ccee3a01c2e8c377dc6a760b5d7802e58afda72 Mon Sep 17 00:00:00 2001 From: Ryota Ozaki [EMAIL PROTECTED] Date: Sat, 4 Oct 2008 15:30:48 +0900 Subject: [PATCH] kvm: user: Call pthread_join only to created threads. If thread_main fails