public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Setting disk parameters in a VM
@ 2009-03-13 16:58 Bill Davidsen
  2009-03-15 10:40 ` Avi Kivity
  0 siblings, 1 reply; 3+ messages in thread
From: Bill Davidsen @ 2009-03-13 16:58 UTC (permalink / raw)
  To: KVM list

Based on a discussion in another list on ioschedulers, I added a few 
lines to my rc.local to set the scheduler to "noop" for disks with model 
QEMU*, to the scheduling in the VM will not be computing with the 
scheduling in the host.

I wonder if the same thinking applies to the "rotational" feature added 
to /sys/block in 2.6.29, intended for SSD but probably appropriate for 
virtual and nbd devices as well.

-- 
Bill Davidsen <davidsen@tmr.com>
  "Woe unto the statesman who makes war without a reason that will still
  be valid when the war is over..." Otto von Bismark 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting disk parameters in a VM
  2009-03-13 16:58 Setting disk parameters in a VM Bill Davidsen
@ 2009-03-15 10:40 ` Avi Kivity
  2009-03-15 20:42   ` Bill Davidsen
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2009-03-15 10:40 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: KVM list

Bill Davidsen wrote:
> Based on a discussion in another list on ioschedulers, I added a few 
> lines to my rc.local to set the scheduler to "noop" for disks with 
> model QEMU*, to the scheduling in the VM will not be computing with 
> the scheduling in the host.
>
> I wonder if the same thinking applies to the "rotational" feature 
> added to /sys/block in 2.6.29, intended for SSD but probably 
> appropriate for virtual and nbd devices as well.

A virtual disk backed by a rotational physical disk probably should be 
marked rotational, at least with cache=off.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting disk parameters in a VM
  2009-03-15 10:40 ` Avi Kivity
@ 2009-03-15 20:42   ` Bill Davidsen
  0 siblings, 0 replies; 3+ messages in thread
From: Bill Davidsen @ 2009-03-15 20:42 UTC (permalink / raw)
  To: Avi Kivity; +Cc: KVM list

Avi Kivity wrote:
> Bill Davidsen wrote:
>> Based on a discussion in another list on ioschedulers, I added a few 
>> lines to my rc.local to set the scheduler to "noop" for disks with 
>> model QEMU*, to the scheduling in the VM will not be computing with 
>> the scheduling in the host.
>>
>> I wonder if the same thinking applies to the "rotational" feature 
>> added to /sys/block in 2.6.29, intended for SSD but probably 
>> appropriate for virtual and nbd devices as well.
>
> A virtual disk backed by a rotational physical disk probably should be 
> marked rotational, at least with cache=off.
>
The question was more regarding virtual drives backed by files, but even 
so I would think the bad case would be to let the host decide what 
methods should be used, rather than the VM, which is more likely to do 
things wrong based on incomplete information.

Feel free to clarify if you think there's a case where the VM and the 
host should both be doing caching and scheduling. The only one I can 
imagine is if a USB port is passed to the VM and it has a storage device 
attached. That's not really a common configuration, I would guess.

-- 
Bill Davidsen <davidsen@tmr.com>
  "Woe unto the statesman who makes war without a reason that will still
  be valid when the war is over..." Otto von Bismark 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-15 20:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 16:58 Setting disk parameters in a VM Bill Davidsen
2009-03-15 10:40 ` Avi Kivity
2009-03-15 20:42   ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox