qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Data classification in Qemu
@ 2014-09-15 16:06 Wu Libin
  2014-09-16 14:46 ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: Wu Libin @ 2014-09-15 16:06 UTC (permalink / raw)
  To: qemu-devel

Hi, everyone

I’m wondering if the Qemu has the data classification function.I means it can classify the file size like 4K, 8K, 16K,…,4M,…1G, and do some cache policies with SSD.

Anyone can tell me about this? I search the list and find nothing. Sorry if it already exists on the mail list.

Thanks!

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

* Re: [Qemu-devel] Data classification in Qemu
  2014-09-15 16:06 [Qemu-devel] Data classification in Qemu Wu Libin
@ 2014-09-16 14:46 ` Stefan Hajnoczi
  2014-09-16 15:03   ` Wu Libin
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Hajnoczi @ 2014-09-16 14:46 UTC (permalink / raw)
  To: Wu Libin; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

On Tue, Sep 16, 2014 at 12:06:21AM +0800, Wu Libin wrote:
> I’m wondering if the Qemu has the data classification function.I means it can classify the file size like 4K, 8K, 16K,…,4M,…1G, and do some cache policies with SSD.
> 
> Anyone can tell me about this? I search the list and find nothing. Sorry if it already exists on the mail list.

Not sure what you are trying to do.

QEMU system emulation only deals with block devices, it is not aware of
the file system inside the guest.

Have you looked at dm-cache which can be used with LVM?

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [Qemu-devel] Data classification in Qemu
  2014-09-16 14:46 ` Stefan Hajnoczi
@ 2014-09-16 15:03   ` Wu Libin
  2014-09-17  9:01     ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: Wu Libin @ 2014-09-16 15:03 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

Yeah, i know dm-cache, it’s in the layer of block.

Maybe my description is not clear enough.Just because i see a patch, it will set flags which can classify IO size in bio->bi_flags, and in the function sd_prep_fn, it will set the SCSI command depends on the bio->bi_flags, like:
SCpnt->cmnd[6] = DSS_BIO_CLASS(SCpnt->request->bio);

And i see the data classification function will be enabled when the device model is “QEMU”, so i guess the QEMU must can recognise the SCSI command. That’s why i will search the data classification about the QEMU.

It’s true QEMU not care about the filesystem, but we have flags, right, -:).

On 16 Sep, 2014, at 10:46 pm, Stefan Hajnoczi <stefanha@gmail.com> wrote:

> On Tue, Sep 16, 2014 at 12:06:21AM +0800, Wu Libin wrote:
>> I’m wondering if the Qemu has the data classification function.I means it can classify the file size like 4K, 8K, 16K,…,4M,…1G, and do some cache policies with SSD.
>> 
>> Anyone can tell me about this? I search the list and find nothing. Sorry if it already exists on the mail list.
> 
> Not sure what you are trying to do.
> 
> QEMU system emulation only deals with block devices, it is not aware of
> the file system inside the guest.
> 
> Have you looked at dm-cache which can be used with LVM?
> 
> Stefan

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

* Re: [Qemu-devel] Data classification in Qemu
  2014-09-16 15:03   ` Wu Libin
@ 2014-09-17  9:01     ` Stefan Hajnoczi
  2014-09-17 13:48       ` Wu Libin
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Hajnoczi @ 2014-09-17  9:01 UTC (permalink / raw)
  To: Wu Libin; +Cc: Paolo Bonzini, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

On Tue, Sep 16, 2014 at 11:03:04PM +0800, Wu Libin wrote:
> Yeah, i know dm-cache, it’s in the layer of block.
> 
> Maybe my description is not clear enough.Just because i see a patch, it will set flags which can classify IO size in bio->bi_flags, and in the function sd_prep_fn, it will set the SCSI command depends on the bio->bi_flags, like:
> SCpnt->cmnd[6] = DSS_BIO_CLASS(SCpnt->request->bio);
> 
> And i see the data classification function will be enabled when the device model is “QEMU”, so i guess the QEMU must can recognise the SCSI command. That’s why i will search the data classification about the QEMU.
> 
> It’s true QEMU not care about the filesystem, but we have flags, right, -:).

After a web search I guess you are are talking about this paper:
http://sigops.org/sosp/sosp11/current/2011-Cascais/printable/05-mesnier.pdf

The code isn't upstream and I've never heard of it.

I think you should get in touch with the authors instead.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [Qemu-devel] Data classification in Qemu
  2014-09-17  9:01     ` Stefan Hajnoczi
@ 2014-09-17 13:48       ` Wu Libin
  0 siblings, 0 replies; 5+ messages in thread
From: Wu Libin @ 2014-09-17 13:48 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: Paolo Bonzini, qemu-devel

Cool, the document should be the design of the patch.
The patch is a lustre in intel.
Thanks,-:)

On 17 Sep, 2014, at 5:01 pm, Stefan Hajnoczi <stefanha@gmail.com> wrote:

> On Tue, Sep 16, 2014 at 11:03:04PM +0800, Wu Libin wrote:
>> Yeah, i know dm-cache, it’s in the layer of block.
>> 
>> Maybe my description is not clear enough.Just because i see a patch, it will set flags which can classify IO size in bio->bi_flags, and in the function sd_prep_fn, it will set the SCSI command depends on the bio->bi_flags, like:
>> SCpnt->cmnd[6] = DSS_BIO_CLASS(SCpnt->request->bio);
>> 
>> And i see the data classification function will be enabled when the device model is “QEMU”, so i guess the QEMU must can recognise the SCSI command. That’s why i will search the data classification about the QEMU.
>> 
>> It’s true QEMU not care about the filesystem, but we have flags, right, -:).
> 
> After a web search I guess you are are talking about this paper:
> http://sigops.org/sosp/sosp11/current/2011-Cascais/printable/05-mesnier.pdf
> 
> The code isn't upstream and I've never heard of it.
> 
> I think you should get in touch with the authors instead.
> 
> Stefan

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

end of thread, other threads:[~2014-09-17 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-15 16:06 [Qemu-devel] Data classification in Qemu Wu Libin
2014-09-16 14:46 ` Stefan Hajnoczi
2014-09-16 15:03   ` Wu Libin
2014-09-17  9:01     ` Stefan Hajnoczi
2014-09-17 13:48       ` Wu Libin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).