Transmission: cache-size-mb只涉及到内存写入缓存,不能设置读取缓存?所有上传经过硬盘导致io高负载

Created on 17 Jan 2019  ·  7Comments  ·  Source: transmission/transmission

cache-size-mb只涉及到内存写入缓存,不能设置读取缓存?所有上传经过硬盘导致io高负载
我查看了配置文件,都没有详细说明读取缓存
https://github.com/transmission/transmission/wiki/Editing-Configuration-Files

1
2
3
4

监控也很明显的,全走磁盘,不经过内存
1

All 7 comments

版本 2.84

Translate:
cache-size-mb can merely set the writing buffer but make no controls on reading buffer, which makes seeding a problem.

The user @1265578519 wants to configure the reading buffer so that the program can load the entire file to memory for seeding purpose.

版本 2.84

发英文比较好

cache-size-mb is only used for (re-)calculating the hashes. It is not used for I/O during peer messages at all. If you grep through the code, the only references to tr_cache{Read,Prefetch}Block that you're going to find come from functions which are used for calculating hashes for the torrent's pieces. The cache is filled while the pieces are received from peers (presumably for recalculating the hash when the torrent is completed, though I haven't checked that in depth), but isn't used at all when sending data to them.
The only form of caching used while sending data to peers is POSIX's fadvise call. Transmission does not appear to use any form of internal caching in this case.
It seems like the meaning of this configuration key is very widely misunderstood. I wish there was a wiki page or something that users can be pointed to in order to familiarise themselves with what cache-size-mb actually does, or, more importantly, what it doesn't do.

@xavery 我认为,他是确实有写入缓存的,因为你尝试修改值,然后进行下载操作,你会发现,在设置的值内,不会写入硬盘,都存在内存中。
如果达到内存值满了,才会进行一次硬盘的写入操作。

@1265578519 You're welcome to open the code and prove me wrong. I'm just sharing my own experiences, since I've looked into this before.

I would suggest closing this issue. This is not a programming issue.
The wiki page might need to be updated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

legacychimera247 picture legacychimera247  ·  8Comments

Spindel picture Spindel  ·  8Comments

boingo-00 picture boingo-00  ·  3Comments

crumpetcrusher picture crumpetcrusher  ·  5Comments

hanklank picture hanklank  ·  3Comments