Anyone with any ideas why ACS is not detecting I have newer versions of qemu and libvirt to enable io_uring?

On 7/10/23 19:57, Jorge Luiz Correa wrote:
Hum, so strange.

I'm not a CloudStack specialist but it look like the code is simple and try to test the versions of qemu and libvirt:

https://github.com/apache/cloudstack/pull/5012/commits/c7c3dd3dd9b8869f45c5bd9c17af83d230ac7886

Here, at the slide bottom he shows this simple test too.

https://youtu.be/y0NYuUtm5Kk?list=PLnIKk7GjgFlYfut3ZIOrvN--_YuSPIerQ&t=791 <https://youtu.be/y0NYuUtm5Kk?list=PLnIKk7GjgFlYfut3ZIOrvN--_YuSPIerQ&t=791>

For some reason CloudStack is not detecting your versions. My disk offering is simple, Thin provisioning, custom disk size, QoS = none, Write-cache type = no disk cache. I'm using Ubuntu Server 22.04 and CloudStack 4.17.2.

Em seg., 10 de jul. de 2023 às 14:22, Granwille Strauss <granwi...@namhost.com> escreveu:

    Jorge, I thought so too, but XML dumps does not contain it. So I
    figured the oi.policy setting needs to be set in management
    server. Here's my KVM details:

    Compiled against library: libvirt 8.0.0
    Using library: libvirt 8.0.0
    Using API: QEMU 8.0.0
    Running hypervisor: QEMU 6.2.0

    qemu guest agents also exist on VMs. And here's a XML dump:

    root@athena03 ~ $ virsh dumpxml i-2-120-VM | grep driver
          <driver name='qemu' type='qcow2' cache='none'/>
          <driver name='qemu'/>
    root@athena03 ~ $
    On 7/10/23 18:51, Jorge Luiz Correa wrote:
    Granwille, no special configuration, just the CloudStack default
    behavior. As I understand, CloudStack can detect automatically if
    host supports this feature based on qemu and libvirt versions.

    https://github.com/apache/cloudstack/issues/4883#issuecomment-813955599


    What versions of kernel, qemu and libvirt are you using in KVM host?

    Em seg., 10 de jul. de 2023 às 13:26, Granwille Strauss
    <granwi...@namhost.com> escreveu:

        Hi Jorge

        How do you actually enable io_uring via Cloustack?
        My KVM does have the necessary requirements.

        I enabled io.policy settings in global settings, local storage
        and in the VM settings via UI. And my xml dump of VM doesn’t
        include io_uring under driver for some reason.

-- Regards / Groete

        <https://www.namhost.com/>        Granwille Strauss  // Senior
        Systems Administrator

        *e:* granwi...@namhost.com
        *m:* +264 81 323 1260 <tel:+264813231260>
        *w:* www.namhost.com <https://www.namhost.com/>

        <https://www.facebook.com/namhost>
        <https://twitter.com/namhost>
        <https://www.instagram.com/namhostinternetservices/>
        <https://www.linkedin.com/company/namhos>
        <https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA>

        
<https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner>

        The content of this message is confidential.

        For our full privacy policy and disclaimers, please go to
        https://www.namhost.com/privacy-policy

        Powered by AdSigner
        
<https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>

        On 10 Jul 2023, at 5:27 PM, Granwille Strauss
        <granwi...@namhost.com.invalid>
        <mailto:granwi...@namhost.com.invalid> wrote:

        

        Hi Jorge

        Thank you so much for this. I used your FIO config and
        surprisingly it seems fine:

        write-test: (g=0): rw=randrw, bs=(R) 1300MiB-1300MiB, (W)
        1300MiB-1300MiB, (T) 1300MiB-1300MiB, ioengine=libaio,
        iodepth=1
        fio-3.19

        Run status group 0 (all jobs):
           READ: bw=962MiB/s (1009MB/s), 962MiB/s-962MiB/s
        (1009MB/s-1009MB/s), io=3900MiB (4089MB), run=4052-4052msec
          WRITE: bw=321MiB/s (336MB/s), 321MiB/s-321MiB/s
        (336MB/s-336MB/s), io=1300MiB (1363MB), run=4052-4052msec

        This is without enabling io_uring. I see I can enable it per
        VM using the UI by setting the io.policy = io_uring. Will
        enable this on a few VMs and see if it works better.

        On 7/10/23 15:41, Jorge Luiz Correa wrote:
        Hi Granwille! About the READ/WRITE performance, as Levin suggested, 
check
        the XML of virtual machines looking at disk/device section. Look for
        io='io_uring'.

        As stated here:

        https://github.com/apache/cloudstack/issues/4883

        CloudStack can use io_uring with Qemu >= 5.0 and Libvirt >= 6.3.0.

        I tried to do some tests at some points like your environment.

        ######################################
        VM in NFS Primary Storage (Hybrid NAS)
        Default disk offering, thin (no restriction)

        <devices>
             <emulator>/usr/bin/qemu-system-x86_64</emulator>
             <disk type='file' device='disk'>
               <driver name='qemu' type='qcow2' cache='none' io='io_uring'/>
               <source
        
file='/mnt/74267a3b-46c5-3f6c-8637-a9f721852954/fb46fd2c-59bd-4127-851b-693a957bd5be'
        index='2'/>
               <backingStore/>
               <target dev='vda' bus='virtio'/>
               <serial>fb46fd2c59bd4127851b</serial>
               <alias name='virtio-disk0'/>
               <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
        function='0x0'/>
             </disk>

        fio --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test
        --filename=/tmp/random_read_write.fio --bs=1300m --iodepth=8 --size=6G
        --readwrite=randrw

        READ: 569MiB/s
        WRITE: 195MiB/s

        ######################################
        VM in Local Primary Storage (local SSD host)
        Default disk offering, thin (no restriction)

        <devices>
             <emulator>/usr/bin/qemu-system-x86_64</emulator>
             <disk type='file' device='disk'>
               <driver name='qemu' type='qcow2' cache='none' io='io_uring'/>
               <source
        file='/var/lib/libvirt/images/d100c55d-8ff2-45e5-8452-6fa56c0725e5'
        index='2'/>
               <backingStore/>
               <target dev='vda' bus='virtio'/>
               <serial>fb46fd2c59bd4127851b</serial>
               <alias name='virtio-disk0'/>
               <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
        function='0x0'/>

        fio --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test
        --filename=/tmp/random_read_write.fio --bs=1300m --iodepth=8 --size=6G
        --readwrite=randrw

        First run (a little bit slow if using "thin" because need to allocate 
space
        in qcow2):
        READ: bw=796MiB/s
        WRITE: bw=265MiB/s

        Second run:
        READ: bw=952MiB/s
        WRITE: bw=317MiB/s

        ##############################
        Directly in local SSD of host:

        fio --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test
        --filename=/tmp/random_read_write.fio --bs=1300m --iodepth=8 --size=6G
        --readwrite=randrw

        READ: bw=931MiB/s
        WRITE: bw=310MiB/s

        OBS.: parameters of fio test need to be changed to test in your 
environment
        as it depends on the number of cpus, memory, --bs, --iodepth etc.

        Host is running 5.15.0-43 kernel, qemu 6.2 and libvirt 8. CloudStack is
        4.17.2. So, VM in local SSD of host could have very similar disk
        performance from the host.

        I hope this could help you!

        Thanks.

-- Regards / Groete

        <https://www.namhost.com>         Granwille Strauss  // Senior
        Systems Admin

        *e:* granwi...@namhost.com
        *m:* +264 81 323 1260 <tel:+264813231260>
        *w:* www.namhost.com <https://www.namhost.com/>

        
<https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.instagram.com/namhostinternetservices/><https://www.linkedin.com/company/namhos><https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA>

        
<https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner>

        Namhost Internet Services (Pty) Ltd,
        24 Black Eagle Rd, Hermanus, 7210, RSA


        The content of this message is confidential. If you have
        received it by mistake, please inform us by email reply and
        then delete the message. It is forbidden to copy, forward,
        or in any way reveal the contents of this message to anyone
        without our explicit consent. The integrity and security of
        this email cannot be guaranteed over the Internet.
        Therefore, the sender will not be held liable for any damage
        caused by the message. For our full privacy policy and
        disclaimers, please go to
        https://www.namhost.com/privacy-policy

        Powered by AdSigner
        
<https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>


    __________________________
    Aviso de confidencialidade

    Esta mensagem da Empresa  Brasileira de Pesquisa Agropecuaria
    (Embrapa), empresa publica federal  regida pelo disposto  na Lei
    Federal no. 5.851,  de 7 de dezembro de 1972,  e  enviada
    exclusivamente  a seu destinatario e pode conter informacoes 
    confidenciais, protegidas  por sigilo profissional.  Sua
    utilizacao desautorizada  e ilegal e  sujeita o infrator as penas
    da lei. Se voce  a recebeu indevidamente, queira, por gentileza,
    reenvia-la ao emitente, esclarecendo o equivoco.

    Confidentiality note

    This message from Empresa  Brasileira de Pesquisa Agropecuaria
    (Embrapa), a government company  established under  Brazilian law
    (5.851/72), is directed exclusively to  its addressee  and may
    contain confidential data, protected under  professional secrecy 
    rules. Its unauthorized  use is illegal and  may subject the
    transgressor to the law's penalties. If you are not the
    addressee, please send it back, elucidating the failure.
-- Regards / Groete

    <https://www.namhost.com>     Granwille Strauss  // Senior Systems Admin

    *e:* granwi...@namhost.com
    *m:* +264 81 323 1260 <tel:+264813231260>
    *w:* www.namhost.com <https://www.namhost.com/>

    
<https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.instagram.com/namhostinternetservices/><https://www.linkedin.com/company/namhos><https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA>

    
<https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner>

    Namhost Internet Services (Pty) Ltd,

    24 Black Eagle Rd, Hermanus, 7210, RSA



    The content of this message is confidential. If you have received
    it by mistake, please inform us by email reply and then delete the
    message. It is forbidden to copy, forward, or in any way reveal
    the contents of this message to anyone without our explicit
    consent. The integrity and security of this email cannot be
    guaranteed over the Internet. Therefore, the sender will not be
    held liable for any damage caused by the message. For our full
    privacy policy and disclaimers, please go to
    https://www.namhost.com/privacy-policy

    Powered by AdSigner
    
<https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>


__________________________
Aviso de confidencialidade

Esta mensagem da Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), empresa publica federal  regida pelo disposto  na Lei Federal no. 5.851,  de 7 de dezembro de 1972,  e  enviada exclusivamente  a seu destinatario e pode conter informacoes confidenciais, protegidas  por sigilo profissional.  Sua utilizacao desautorizada  e ilegal e  sujeita o infrator as penas da lei. Se voce  a recebeu indevidamente, queira, por gentileza, reenvia-la ao emitente, esclarecendo o equivoco.

Confidentiality note

This message from Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), a government company  established under  Brazilian law (5.851/72), is directed exclusively to  its addressee  and may contain confidential data,  protected under  professional secrecy rules. Its unauthorized  use is illegal and  may subject the transgressor to the law's penalties. If you are not the addressee, please send it back, elucidating the failure.
--
Regards / Groete

<https://www.namhost.com>         Granwille Strauss  // Senior Systems Admin

*e:* granwi...@namhost.com
*m:* +264 81 323 1260 <tel:+264813231260>
*w:* www.namhost.com <https://www.namhost.com/>

<https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.instagram.com/namhostinternetservices/><https://www.linkedin.com/company/namhos><https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA>

<https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner>

Namhost Internet Services (Pty) Ltd,

24 Black Eagle Rd, Hermanus, 7210, RSA



The content of this message is confidential. If you have received it by mistake, please inform us by email reply and then delete the message. It is forbidden to copy, forward, or in any way reveal the contents of this message to anyone without our explicit consent. The integrity and security of this email cannot be guaranteed over the Internet. Therefore, the sender will not be held liable for any damage caused by the message. For our full privacy policy and disclaimers, please go to https://www.namhost.com/privacy-policy

Powered by AdSigner <https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to