linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about the performance of 'btrfs send'
@ 2022-10-15 12:35 Wang Yugui
  2022-10-17 13:02 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Yugui @ 2022-10-15 12:35 UTC (permalink / raw)
  To: linux-btrfs

Hi,

a question about the performance of 'btrfs send'.

The output speed of 'btrfs send' is about 700MiB/s in the 3 cases.
1) kernel 5.15.73 + 'btrfs send --proto 1'
2) kernel: 6.0.1(with btrfs-devel misc-6.1) +  'btrfs send --proto 1'
3) kernel: 6.0.1(with btrfs-devel misc-6.1) +  'btrfs send --proto 2'
btrfs-progs: 6.0

the outut of 'perf report':
Overhead  Command  Shared Object      Symbol
*1  40.63%  btrfs    [kernel.kallsyms]  [k] __crc32c_le
*2   9.97%  btrfs    [kernel.kallsyms]  [k] memcpy_erms
*3   9.25%  btrfs    [kernel.kallsyms]  [k] send_extent_data
*4   5.40%  btrfs    [kernel.kallsyms]  [k] asm_exc_nmi
*5   2.73%  btrfs    [kernel.kallsyms]  [k] __alloc_pages
   1.14%  btrfs    [kernel.kallsyms]  [k] __rmqueue_pcplist
   0.92%  btrfs    [kernel.kallsyms]  [k] bad_range
   0.88%  btrfs    [kernel.kallsyms]  [k] get_page_from_freelist

What I expected:
the above *1) __crc32c_le take >60%, and the outut speed > 1GiB/s.
The *1) __crc32c_le is necessary operation, and the speed
seems OK.  2GB/s * 40% = 800MiB/s, it is close to 700MiB/s.

Question:
The above *3) is difficult to understand. Any advice?

Best Regards
Wang Yugui (wangyugui@e16-tech.com)
2022/10/15



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-17 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-15 12:35 question about the performance of 'btrfs send' Wang Yugui
2022-10-17 13:02 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).