Re: disk monopolized?

2016-12-13 Thread Rahul Sundaram
On Mon, Dec 12, 2016 at 2:34 AM Samuel Sieb  wrote:

>
> Yes, that is "normal" behaviour.  Apparently it's a very hard problem to
> solve.
>

4.10 is expected to make this better

http://lkml.iu.edu/hypermail/linux/kernel/1612.1/01878.html

Rahul
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: disk monopolized?

2016-12-11 Thread Samuel Sieb

On 12/11/2016 05:08 AM, Tom Horsley wrote:

Last night I was "optimizing" a qcow2 virtual image
(after zero filling the free space), running (as root):

qemu-img convert -f qcow2 -O qcow2 old.img new.img

The copying and scanning for zero blocks pretty
much took over the disk. Anything else I tried to run
which needed access to something on that disk would
hang for minutes at a time before getting through.

Is that normal behavior? I thought folks were supposed
to take turns and play nice together :-).


Yes, that is "normal" behaviour.  Apparently it's a very hard problem to 
solve.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: disk monopolized?

2016-12-11 Thread jd1008

Also, on my systems, I have been getting a lot of soft-lock timeouts "oops".
This would seem to be caused (possibly) by
1. a slow i/o drive
2. improper implementation of the soft-lock mechanism in the kernel/driver
   which does not take drive i/o speed into account.


On 12/11/2016 12:51 PM, Eric Griffith wrote:
On a related note, did the kernel devs ever fix the bug where high I/O 
would make the system basically unusable? This sounds a lot like that, 
but I thought stuff like blk-mq were supposed to fix it.


On Sun, Dec 11, 2016 at 1:13 PM, jd1008 > wrote:




On 12/11/2016 06:08 AM, Tom Horsley wrote:

Last night I was "optimizing" a qcow2 virtual image
(after zero filling the free space), running (as root):

qemu-img convert -f qcow2 -O qcow2 old.img new.img

The copying and scanning for zero blocks pretty
much took over the disk. Anything else I tried to run
which needed access to something on that disk would
hang for minutes at a time before getting through.

Is that normal behavior? I thought folks were supposed
to take turns and play nice together :-).
___
users mailing list -- users@lists.fedoraproject.org

To unsubscribe send an email to
users-le...@lists.fedoraproject.org


So "qcow2 old.img" is on the file system you want other apps to
access,
and so is  "new.img" ? this sounds like "as if" qemu-img wants to
make sure
that the two images, old and new, will not be modified during the
conversion
process. Since you ARE running as root, you have the privs to run
the conversion
at a very high priority that, for most of the time, it is picked
first off the run queue
and placed on cpu, and "might" even be inhibiting access to the
filesystem hosting
the 2 images during the conversion.

Now this is all conjecture on my part as I have never used it.

Other issues might be
1. The drive is a very slow drive
 and/or
2. You do not have sufficient ram for buffering large amounts of data
and/or
3. You do not have multiple cores for other threads to run on
different cores.

One of the ways to really debug this is to scan the source code of
qemu-img to
see what priority it tries to give itself, what read/write/ioctl
operations it is performing
and look up the man pages on those operations to see if they are
being performed
in a manner that the process (in the kernel) spins idly while
waiting for the operation
to finish, and also scan the kernel to see if the huge FS spinlock
is held during the entire
conversion operation.

___
users mailing list -- users@lists.fedoraproject.org

To unsubscribe send an email to
users-le...@lists.fedoraproject.org





___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: disk monopolized?

2016-12-11 Thread Eric Griffith
On a related note, did the kernel devs ever fix the bug where high I/O
would make the system basically unusable? This sounds a lot like that, but
I thought stuff like blk-mq were supposed to fix it.

On Sun, Dec 11, 2016 at 1:13 PM, jd1008  wrote:

>
>
> On 12/11/2016 06:08 AM, Tom Horsley wrote:
>
>> Last night I was "optimizing" a qcow2 virtual image
>> (after zero filling the free space), running (as root):
>>
>> qemu-img convert -f qcow2 -O qcow2 old.img new.img
>>
>> The copying and scanning for zero blocks pretty
>> much took over the disk. Anything else I tried to run
>> which needed access to something on that disk would
>> hang for minutes at a time before getting through.
>>
>> Is that normal behavior? I thought folks were supposed
>> to take turns and play nice together :-).
>> ___
>> users mailing list -- users@lists.fedoraproject.org
>> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>>
> So "qcow2 old.img" is on the file system you want other apps to access,
> and so is  "new.img" ? this sounds like "as if" qemu-img wants to make sure
> that the two images, old and new, will not be modified during the
> conversion
> process. Since you ARE running as root, you have the privs to run the
> conversion
> at a very high priority that, for most of the time, it is picked first off
> the run queue
> and placed on cpu, and "might" even be inhibiting access to the filesystem
> hosting
> the 2 images during the conversion.
>
> Now this is all conjecture on my part as I have never used it.
>
> Other issues might be
> 1. The drive is a very slow drive
>  and/or
> 2. You do not have sufficient ram for buffering large amounts of data
> and/or
> 3. You do not have multiple cores for other threads to run on different
> cores.
>
> One of the ways to really debug this is to scan the source code of
> qemu-img to
> see what priority it tries to give itself, what read/write/ioctl
> operations it is performing
> and look up the man pages on those operations to see if they are being
> performed
> in a manner that the process (in the kernel) spins idly while waiting for
> the operation
> to finish, and also scan the kernel to see if the huge FS spinlock is held
> during the entire
> conversion operation.
>
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: disk monopolized?

2016-12-11 Thread jd1008



On 12/11/2016 06:08 AM, Tom Horsley wrote:

Last night I was "optimizing" a qcow2 virtual image
(after zero filling the free space), running (as root):

qemu-img convert -f qcow2 -O qcow2 old.img new.img

The copying and scanning for zero blocks pretty
much took over the disk. Anything else I tried to run
which needed access to something on that disk would
hang for minutes at a time before getting through.

Is that normal behavior? I thought folks were supposed
to take turns and play nice together :-).
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

So "qcow2 old.img" is on the file system you want other apps to access,
and so is  "new.img" ? this sounds like "as if" qemu-img wants to make sure
that the two images, old and new, will not be modified during the conversion
process. Since you ARE running as root, you have the privs to run the 
conversion
at a very high priority that, for most of the time, it is picked first 
off the run queue
and placed on cpu, and "might" even be inhibiting access to the 
filesystem hosting

the 2 images during the conversion.

Now this is all conjecture on my part as I have never used it.

Other issues might be
1. The drive is a very slow drive
 and/or
2. You do not have sufficient ram for buffering large amounts of data
and/or
3. You do not have multiple cores for other threads to run on different 
cores.


One of the ways to really debug this is to scan the source code of 
qemu-img to
see what priority it tries to give itself, what read/write/ioctl 
operations it is performing
and look up the man pages on those operations to see if they are being 
performed
in a manner that the process (in the kernel) spins idly while waiting 
for the operation
to finish, and also scan the kernel to see if the huge FS spinlock is 
held during the entire

conversion operation.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


disk monopolized?

2016-12-11 Thread Tom Horsley
Last night I was "optimizing" a qcow2 virtual image
(after zero filling the free space), running (as root):

qemu-img convert -f qcow2 -O qcow2 old.img new.img

The copying and scanning for zero blocks pretty
much took over the disk. Anything else I tried to run
which needed access to something on that disk would
hang for minutes at a time before getting through.

Is that normal behavior? I thought folks were supposed
to take turns and play nice together :-).
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org