* `btrfs receive` almost coming to a halt
@ 2013-05-09 15:14 Remco Hosman - Yerf IT
2013-05-10 7:27 ` Arne Jansen
0 siblings, 1 reply; 3+ messages in thread
From: Remco Hosman - Yerf IT @ 2013-05-09 15:14 UTC (permalink / raw)
To: linux-btrfs@vger.kernel.org
kernel: 3.9.0
btrfs-progs: pulled from git this morning
Trying to receive a 5gig send file. the first bit is fast, doing 10 - 50MB/sec.
then it slows down. cpu usage is 50% (dual core machine).
when i do a strace, it looks like this, repeating over an over, about 1 piece each second:
--
read(3, "q\0\0\0\20\0008\352\327o", 10) = 10
read(3, "\22\0\10\0\0\0$~\0\0\0\0\30\0\10\0\0\0\2\0\0\0\0\0\17\0\24\0DB2/"..., 113) = 113
open("/media/snaps/yerf-2013-05-02-03:15:01/DB2/DB2-flat.vmdk", O_RDONLY|O_NOATIME) = 6
ioctl(5, 0x4020940d, 0x7fffc6d41c60) = 0
close(6) = 0
read(3, "q\0\0\0\20\0\242>\357\263", 10) = 10
read(3, "\22\0\10\0\0\0&~\0\0\0\0\30\0\10\0\0\0\2\0\0\0\0\0\17\0\24\0DB2/"..., 113) = 113
open("/media/snaps/yerf-2013-05-02-03:15:01/DB2/DB2-flat.vmdk", O_RDONLY|O_NOATIME) = 6
ioctl(5, 0x4020940d, 0x7fffc6d41c60) = 0
close(6) = 0
--
it pauses for a second after "ioctl(5, 0x4020940d"
it has been running like that for 3 hours now.
the file its working is large (80gig) and filefrag reports 648862 extends.
filesystem is mounted with rw,relatime,compress-force=lzo,space_cache
anything i can do to see what the problem is?
Remco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `btrfs receive` almost coming to a halt
2013-05-09 15:14 `btrfs receive` almost coming to a halt Remco Hosman - Yerf IT
@ 2013-05-10 7:27 ` Arne Jansen
2013-05-10 7:34 ` Remco Hosman - Yerf IT
0 siblings, 1 reply; 3+ messages in thread
From: Arne Jansen @ 2013-05-10 7:27 UTC (permalink / raw)
To: Remco Hosman - Yerf IT; +Cc: linux-btrfs@vger.kernel.org
On 09.05.2013 17:14, Remco Hosman - Yerf IT wrote:
> kernel: 3.9.0
> btrfs-progs: pulled from git this morning
>
> Trying to receive a 5gig send file. the first bit is fast, doing 10 - 50MB/sec.
> then it slows down. cpu usage is 50% (dual core machine).
> when i do a strace, it looks like this, repeating over an over, about 1 piece each second:
> --
> read(3, "q\0\0\0\20\0008\352\327o", 10) = 10
> read(3, "\22\0\10\0\0\0$~\0\0\0\0\30\0\10\0\0\0\2\0\0\0\0\0\17\0\24\0DB2/"..., 113) = 113
> open("/media/snaps/yerf-2013-05-02-03:15:01/DB2/DB2-flat.vmdk", O_RDONLY|O_NOATIME) = 6
> ioctl(5, 0x4020940d, 0x7fffc6d41c60) = 0
> close(6) = 0
> read(3, "q\0\0\0\20\0\242>\357\263", 10) = 10
> read(3, "\22\0\10\0\0\0&~\0\0\0\0\30\0\10\0\0\0\2\0\0\0\0\0\17\0\24\0DB2/"..., 113) = 113
> open("/media/snaps/yerf-2013-05-02-03:15:01/DB2/DB2-flat.vmdk", O_RDONLY|O_NOATIME) = 6
> ioctl(5, 0x4020940d, 0x7fffc6d41c60) = 0
> close(6) = 0
> --
>
Is this the receive side?
Where does the data come from, a local file or via network?
-Arne
> it pauses for a second after "ioctl(5, 0x4020940d"
> it has been running like that for 3 hours now.
> the file its working is large (80gig) and filefrag reports 648862 extends.
> filesystem is mounted with rw,relatime,compress-force=lzo,space_cache
>
> anything i can do to see what the problem is?
>
> Remco--
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `btrfs receive` almost coming to a halt
2013-05-10 7:27 ` Arne Jansen
@ 2013-05-10 7:34 ` Remco Hosman - Yerf IT
0 siblings, 0 replies; 3+ messages in thread
From: Remco Hosman - Yerf IT @ 2013-05-10 7:34 UTC (permalink / raw)
Cc: linux-btrfs@vger.kernel.org
On May 10, 2013, at 9:27 AM, Arne Jansen <sensille@gmx.net> wrote:
> On 09.05.2013 17:14, Remco Hosman - Yerf IT wrote:
>> kernel: 3.9.0
>> btrfs-progs: pulled from git this morning
>>
>> Trying to receive a 5gig send file. the first bit is fast, doing 10 - 50MB/sec.
>> then it slows down. cpu usage is 50% (dual core machine).
>> when i do a strace, it looks like this, repeating over an over, about 1 piece each second:
>> --
>> read(3, "q\0\0\0\20\0008\352\327o", 10) = 10
>> read(3, "\22\0\10\0\0\0$~\0\0\0\0\30\0\10\0\0\0\2\0\0\0\0\0\17\0\24\0DB2/"..., 113) = 113
>> open("/media/snaps/yerf-2013-05-02-03:15:01/DB2/DB2-flat.vmdk", O_RDONLY|O_NOATIME) = 6
>> ioctl(5, 0x4020940d, 0x7fffc6d41c60) = 0
>> close(6) = 0
>> read(3, "q\0\0\0\20\0\242>\357\263", 10) = 10
>> read(3, "\22\0\10\0\0\0&~\0\0\0\0\30\0\10\0\0\0\2\0\0\0\0\0\17\0\24\0DB2/"..., 113) = 113
>> open("/media/snaps/yerf-2013-05-02-03:15:01/DB2/DB2-flat.vmdk", O_RDONLY|O_NOATIME) = 6
>> ioctl(5, 0x4020940d, 0x7fffc6d41c60) = 0
>> close(6) = 0
>> --
>>
>
> Is this the receive side?
> Where does the data come from, a local file or via network?
>
Yes, this is the receiving side. data comes from a local file.
sometimes it does hit a 'good' portion, then i get a strafe like this:
read(3, "(\300\0\0\17\0N0\346\307", 10) = 10
read(3, "\17\0\24\0DB2/DB2-flat.vmdk.ok\22\0\10\0\0@\25\325"..., 49192) = 49192
pwrite(5,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,49152,3574939648) = 49152
Managed to find what ioctl 0x4020940d is in the meantime: BTRFS_IOC_CLONE_RANGE, with 32 bytes parameters (4x int64). have not managed to get the parameters yet. i have no idea how to work gbd.
but i guess they are coming from the 113 bytes it is reading.
Remco
> -Arne
>
>> it pauses for a second after "ioctl(5, 0x4020940d"
>> it has been running like that for 3 hours now.
>> the file its working is large (80gig) and filefrag reports 648862 extends.
>> filesystem is mounted with rw,relatime,compress-force=lzo,space_cache
>>
>> anything i can do to see what the problem is?
>>
>> Remco--
>> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-10 7:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 15:14 `btrfs receive` almost coming to a halt Remco Hosman - Yerf IT
2013-05-10 7:27 ` Arne Jansen
2013-05-10 7:34 ` Remco Hosman - Yerf IT
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.