freebsd-nq/cddl/contrib/opensolaris/cmd
Alexander Motin 14b5719f6a After some ZIL changes 6 years ago zil_slog_limit got partially broken
due to zl_itx_list_sz not updated when async itx'es upgraded to sync.
Actually because of other changes about that time zl_itx_list_sz is not
really required to implement the functionality, so this patch removes
some unneeded broken code and variables.

Original idea of zil_slog_limit was to reduce chance of SLOG abuse by
single heavy logger, that increased latency for other (more latency critical)
loggers, by pushing heavy log out into the main pool instead of SLOG. Beside
huge latency increase for heavy writers, this implementation caused double
write of all data, since the log records were explicitly prepared for SLOG.
Since we now have I/O scheduler, I've found it can be much more efficient
to reduce priority of heavy logger SLOG writes from ZIO_PRIORITY_SYNC_WRITE
to ZIO_PRIORITY_ASYNC_WRITE, while still leave them on SLOG.

Existing ZIL implementation had problem with space efficiency when it
has to write large chunks of data into log blocks of limited size. In some
cases efficiency stopped to almost as low as 50%. In case of ZIL stored on
spinning rust, that also reduced log write speed in half, since head had to
uselessly fly over allocated but not written areas. This change improves
the situation by offloading problematic operations from z*_log_write() to
zil_lwb_commit(), which knows real situation of log blocks allocation and
can split large requests into pieces much more efficiently. Also as side
effect it removes one of two data copy operations done by ZIL code WR_COPIED
case.

While there, untangle and unify code of z*_log_write() functions.
Also zfs_log_write() alike to zvol_log_write() can now handle writes crossing
block boundary, that may also improve efficiency if ZPL is made to do that.

Sponsored by:	iXsystems, Inc.
2016-11-17 21:01:27 +00:00
..
dtrace Fix tst.args1.c on LP64 platforms. 2016-10-16 19:50:10 +00:00
lockstat Have lockstat(1) trace locks by name rather than by address. 2015-09-30 05:46:56 +00:00
mdb/tools/common Mechanically convert cddl sun #ifdef's to illumos 2015-01-17 14:44:59 +00:00
plockstat Fix the build for non-amd64. 2015-12-02 02:11:38 +00:00
pyzfs
stat/common
zdb MFV r304159: 7277 zdb should be able to print zfs_dbgmsg's 2016-09-03 10:07:46 +00:00
zfs MFV r302660: 6314 buffer overflow in dsl_dataset_name 2016-09-01 15:08:27 +00:00
zhack MFV r302660: 6314 buffer overflow in dsl_dataset_name 2016-09-01 15:08:27 +00:00
zinject MFV r296505: 6531 Provide mechanism to artificially limit disk performance 2016-03-08 17:27:13 +00:00
zlook
zpool MFV r302660: 6314 buffer overflow in dsl_dataset_name 2016-09-01 15:08:27 +00:00
zstreamdump MFV r296518: 5027 zfs large block support (add copyright) 2016-03-08 17:51:09 +00:00
ztest After some ZIL changes 6 years ago zil_slog_limit got partially broken 2016-11-17 21:01:27 +00:00