summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-02-25 01:53:45 +0000
committermav <mav@FreeBSD.org>2017-02-25 01:53:45 +0000
commit51c89b98e6d1180067ad03454d5303e098ca812e (patch)
treefae51ea1243c9326d6517f0161564f3a06c3f6d4 /include
parente13dc0131627347529a3e93e6da9f0ab619d080c (diff)
downloadFreeBSD-src-51c89b98e6d1180067ad03454d5303e098ca812e.zip
FreeBSD-src-51c89b98e6d1180067ad03454d5303e098ca812e.tar.gz
MFC r313910: Change XCOPY memory allocations.
Before this change XCOPY code could allocate memory in chunks up to 16-32MB (VMware does XCOPY in 4MB chunks by default), that could be difficult for VM subsystem to do due to KVA fragmentation, that sometimes created huge allocation delays, blocking any I/O for respective LU for that time. This change limits allocations down to TPC_MAX_IO_SIZE, which is 1MB now. 1MB is also not a cookie, but ZFS also can do that for large blocks, so it should be less dramatic. As drawback this increases CPU overhead, but it still look acceptable comparing to time consumed by ZFS read/write.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud