Skip to content

write/create for Parallels images with reasonable performance

Denis V. Lunev qemu-devel 5 versions – Applied

Status from this message: Thanks, applied to my master tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest27 patches 18 repliesApplied
  2. v3 posting 2/227 patches 48 repliesSuperseded
  3. v3 posting 1/227 patches 17 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v219 patches18 repliesSuperseded
v112 patches0 repliesSuperseded

Changes in v4 from the cover letter

- fixed checkpatch warnings even in just moved code. I am tired of them
- fixed contingency check in patch 18

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/27iotests, parallels: quote TEST_IMG in 076 test to be path-safetests/qemu-iotests/076+5 -50 replies
2/27block/parallels: rename parallels_header to ParallelsHeaderblock/parallels.c+4 -40 replies
3/27block/parallels: switch to bdrv_readblock/parallels.c+11 -91 reply
4/27block/parallels: read up to cluster end in one goblock/parallels.c+13 -50 replies
5/27block/parallels: add get_block_statusblock/parallels.c+21 -01 reply
6/27block/parallels: provide _co_readv routine for parallels format driverblock/parallels.c+33 -212 replies
7/27block/parallels: replace magic constants 4, 64 with proper sizeofsblock/parallels.c+4 -40 replies
8/27block/parallels: mark parallels format driver as zero initedblock/parallels.c+1 -02 replies
9/27block/parallels: _co_writev callback for Parallels formatblock/parallels.c+88 -22 replies
10/27iotests, parallels: test for write into Parallels imagetests/qemu-iotests/076 tests/qemu-iotests/076.out+15 -00 replies
11/27block/parallels: support parallels image creationblock/parallels.c+97 -00 replies
12/27iotests, parallels: test for newly created parallels image via qemu-imgtests/qemu-iotests/131 tests/qemu-iotests/131.out tests/qemu-iotests/group+93 -00 replies
13/27parallels: change copyright information in the image headerblock/parallels.c+5 -10 replies
14/27block/parallels: rename catalog_ names to bat_block/parallels.c+30 -280 replies
15/27block/parallels: create bat2sect helperblock/parallels.c+9 -30 replies
16/27block/parallels: keep BAT bitmap data in little endian in memoryblock/parallels.c+5 -120 replies
17/27block/parallels: read parallels image header and BAT into single bufferblock/parallels.c+17 -70 replies
18/27block/parallels: move parallels_open/probe to the very end of the fileblock/parallels.c+98 -930 replies
19/27block/parallels: implement parallels_check method of block driverblock/parallels.c+85 -00 replies
20/27block/parallels: implement incorrect close detectionblock/parallels.c+50 -00 replies
21/27iotests, parallels: check for incorrectly closed image in teststests/qemu-iotests/131 tests/qemu-iotests/131.out+26 -00 replies
22/27block/parallels: improve image reading performanceblock/parallels.c+31 -50 replies
23/27block/parallels: create bat_entry_off helperblock/parallels.c+9 -60 replies
24/27block/parallels: delay writing to BAT till bdrv_co_flush_to_osblock/parallels.c+44 -60 replies
25/27block/parallels: add prealloc-mode and prealloc-size open paramemetsblock/parallels.c+77 -63 replies
26/27block/parallels: optimize linear image expansionblock/parallels.c+32 -102 replies
27/27block/parallels: improve image writing performance furtherblock/parallels.c+23 -201 reply

Reviews trailers per patch

All 27 patches have a Reviewed-by or Acked-by.

PatchDenis V. LunevRoman KaganStefan Hajnoczi
1/27R-b R-b
2/27R-b R-b
3/27R-b R-b
4/27R-b R-b
5/27R-b R-b
6/27R-b R-b
7/27R-b R-b
8/27R-b R-b
9/27R-b R-b
10/27R-b R-b
11/27R-b R-b
12/27R-b R-b
13/27R-b R-b
14/27R-b R-b
15/27R-b R-b
16/27R-b R-b
17/27R-b R-b
18/27R-b R-b
19/27R-b R-b
20/27R-b R-b
21/27R-b R-b
22/27R-b R-b
23/27R-b R-b
24/27R-b R-b
25/27R-b R-b
26/27R-b R-b
27/27R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/27] write/create for Parallels images with reasonable performance

This patchset provides an ability to create of/write to Parallels images and some testing of the new code. Readings and writings are optimized out and I expect the same or slightly better performance as qcow2.

Changes from v4:
- parallels format driver marked as bdrv_has_zero_init_1
- added missed unlocks to parallels_co_readv/writev on error path, locking is shortened and simplified
- changed test number for created images
- added check for bdrv_has_zero_init() and availability of bdrv_truncate() in parallels_open() and proper error handling in alloc_cluster
- some patch comments are improved

Changes from v3:
- fixed checkpatch warnings even in just moved code. I am tired of them
- fixed contingency check in patch 18

Changes from v2:
- read performance is almost doubled (up to 360 Mb/sec), write performance is improved by 15-20%
- bat caching approach changed completely. bat_bitmap now contains the data in on-disk format, which allows to use this data for metadata cache
- incorrect close detection code is added (inuse field in the header)
- very basic check consistency code added

Changes from v1:
- patches 13-19 added, which boosts performance from 800 KiB/sec to near native performance

CC Roman Kagan <[email protected]>
CC Kevin Wolf <[email protected]>
CC Stefan Hajnoczi <[email protected]>