ZFS write is about 300-700mb/s for a few seconds and then it stops completely and will after a minute resume at 6-18mb/s sometimes as high as 50-70mb/s with random drops again because the drive cannot keep up. (Lsi card only writes to the drives at about 160mb/s)
Similar to what this person is experiencing on reddit
The first reply summarises it quite well.
“I've had a similar experience with ZFS and iSCSI. I'm guessing that when you start copying you get really fast speeds for a short time, then the whole things stops completely? As best I can tell, this has to do with async writes not working well with iSCSI. What seems to be happening is that the copy starts and pulls in data as fast as it can, which is much faster than the drives can keep up. Then once the cache fills up, the whole transfer stops until enough of the cached data has been written to disk. And then some more data comes in and it gets jammed again. Then other reads and writes start freezing as well while they wait for the cache to be drained, which only exacerbates the problem. On really bad occasions, I've had the iSCSI system get completely overwhelmed, to the point where I had to restart the system.
You can try setting sync=always on the zvol, which will unfortunately hurt your write performance on small transfers, but should keep things from getting to the point where it's causing the system to fall apart.
I'm not really an expert on any of this, just sharing my experience, so I could be totally wrong on the details, but I'd suggest forcing sync writes and see if that fixes the issue. At a minimum, doing so should provide more info as to how to actually solve the problem.”
I have tried zfs a few times and this seems to happen every time i use it.
Any ideas on how to solve this issue?
Similar to what this person is experiencing on reddit
The first reply summarises it quite well.
“I've had a similar experience with ZFS and iSCSI. I'm guessing that when you start copying you get really fast speeds for a short time, then the whole things stops completely? As best I can tell, this has to do with async writes not working well with iSCSI. What seems to be happening is that the copy starts and pulls in data as fast as it can, which is much faster than the drives can keep up. Then once the cache fills up, the whole transfer stops until enough of the cached data has been written to disk. And then some more data comes in and it gets jammed again. Then other reads and writes start freezing as well while they wait for the cache to be drained, which only exacerbates the problem. On really bad occasions, I've had the iSCSI system get completely overwhelmed, to the point where I had to restart the system.
You can try setting sync=always on the zvol, which will unfortunately hurt your write performance on small transfers, but should keep things from getting to the point where it's causing the system to fall apart.
I'm not really an expert on any of this, just sharing my experience, so I could be totally wrong on the details, but I'd suggest forcing sync writes and see if that fixes the issue. At a minimum, doing so should provide more info as to how to actually solve the problem.”
I have tried zfs a few times and this seems to happen every time i use it.
Any ideas on how to solve this issue?