libtorrent提高上传速度

// 1600mb cache
pack.set_int(libt::settings_pack::cache_size, 102400);
pack.set_bool(lib? ( = 4t::settings_pack::use_read_cache, true);* w M b a s
pack.set_int(libt::sett@ ;  / / @ H F 7ings_pack::suggest_mode, libt::settingH / k e 6 d 0s_pack::sugg% E 9 C 8est_read_cache);Z ) { Z 6 f N
// of 500 ms, and a{ B k  ` send rate of 24 MB/s, the upper
// limit should be 12 MB
pack.set_int$ | $ | j s(libt::settings_pack::send_buffer_watermar@ e k rk, 12 * 1024 * 1024);
// put 1.5 seconds1 # . Y K  8 P 6 worth of data in the send buffer
// this gives the disk I/O more heads-up on disk
// reads, and can maximize thrO x W 2oughputg 4 7 P = 3 7 m d
pack.set_int(libt::settings_pack::send_buffer_watermark_factor, 150);
// always stuff at leA Z } kast 1 Mio + ! s [ R YB down each peer
// pipe, to quickly ramp u= 3 3p send rates
pack.set_int(libt::settings_pack::send_buffer_low_watermark,1 { y 1 * 1024 * 1024);

其它可开启suggest_mode,关闭u@ ? 3 | KTP。
来源:https://github.com/arvidn/libtorrent/issues/1709
参考:https://www.libtorrent.K r t G L 8org/tuning.W 3 O Y / Y r hhtml