public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: v.tolstov@selfip.ru
Cc: kvm@vger.kernel.org
Subject: Re: virtio module question...
Date: Sun, 01 Aug 2010 20:04:28 +0300	[thread overview]
Message-ID: <4C55A91C.7000605@redhat.com> (raw)
In-Reply-To: <1280481216.1336.1.camel@vase.work>

  On 07/30/2010 12:13 PM, Vasiliy G Tolstov wrote:
> Good night or morning....
>
> If i need to some kvm module, that runs in virtualized environment and
> reports some statistics to qemu (disk free space, memory usage, cpu
> utilization) what i need to write?
> I need kernel module, because userspace utilities under heavy load can't send such information via
> network (for example snmp under load does not respond).
>
> Does kvm have skeleton module, what i can use and append code needed
> for me?

I recommend using virtio-serial in userspace.  If your load is very 
high, you can use mlockall() and sched_setscheduler() to keep the 
process in memory and on a cpu.

If you absolutely need a kernel module, you can base it off virtio-serial.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


      reply	other threads:[~2010-08-01 17:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30  9:13 virtio module question Vasiliy G Tolstov
2010-08-01 17:04 ` Avi Kivity [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C55A91C.7000605@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=v.tolstov@selfip.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox