LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 10-06-2021, 01:01 PM   #1
mrproking10
LQ Newbie
 
Registered: Oct 2021
Posts: 3

Rep: Reputation: Disabled
Qemu-img convert causing a very high iowait and server freezing


I have a dedicated server with 2 * 1TB NVMe Disk drives, centos 7 os. With virtualizor installed. When i run qemu-img convert :

Code:
qemu-img convert -f raw -O raw /var/virtualizor/kvm/windows.img /vgs/test.img
The dedicated server becomes inaccessible for minutes. Monitoring the iowait from top command while running qemu-img, shows that the iowait is 50-60%. the server load average increases to more than 100 due to high iowait. it remains like that more than 5-10 minutes then the qemu-img convert command finishes. Df -h results:

Code:
df -h

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         63G     0   63G   0% /dev
tmpfs            63G     0   63G   0% /dev/shm
tmpfs            63G  603M   63G   1% /run
tmpfs            63G     0   63G   0% /sys/fs/cgroup
/dev/md127      1.9T  518G  1.4T  28% /
/dev/nvme0n1p1  997M  219M  778M  22% /boot
tmpfs            13G     0   13G   0% /run/user/0
Here are hdparm -Tt results:

Code:
sudo hdparm -Tt /dev/nvme0n1

/dev/nvme0n1:
 Timing cached reads:   20744 MB in  2.00 seconds = 10384.73 MB/sec
 Timing buffered disk reads: 4370 MB in  3.00 seconds = 1456.09 MB/sec

sudo hdparm -Tt /dev/nvme1n1

/dev/nvme1n1:
 Timing cached reads:   19036 MB in  2.00 seconds = 9528.96 MB/sec
 Timing buffered disk reads: 3774 MB in  3.00 seconds = 1257.47 MB/sec
DD results shows that the disk speed is also very high. These drives are NVMe drives and should be fast.

windows.img size : 40GB

I have another servers and i'm not able to reproduce the same issue on any of them. I tried upgrading kernel, reinstalling centos. Nothing works. Note that: The iowait without running qemu-img convert is in range 0.0 - 0.2 also i'm not able to reproduce the issues with any other commands other than qemu-img convert. Virtualizor support told me that the disk io varies from server to another. But that's causing a huge issues like server freezing for minutes / etc. When using dd command and try to put load on the disk drives. The maximum iowait i get is 5%.
 
Old 11-08-2021, 03:26 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qemu-img convert causing a very high iowait and server freezing mrproking10 Linux - Server 3 10-07-2021 05:24 PM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
Size of vm created by qemu-img convert Nick_C Linux - Virtualization and Cloud 14 03-30-2012 05:29 AM
After qemu-img, qemu is not capable to detect the C drive (empty) frenchn00b Linux - General 3 10-18-2009 05:39 AM
high IOWait on server when copying files from network InDubio Linux - Networking 2 03-12-2007 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration