linux transmission 2.94报错"unable to save resume file: too many open files"

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
1265578519
Posts: 2
Joined: Fri May 03, 2019 12:31 am

linux transmission 2.94报错"unable to save resume file: too many open files"

Post by 1265578519 »

linux transmission 2.94报错"unable to save resume file: too many open files"的解决方法,打开文件数量限制

2.31 (and older),已经失效,新版本不加载
open-file-limit: Number (default = 32)

首先不要说系统配置问题,贴出来给你们看,也使用su transmission确认过
[root@localhost ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 386495
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 386495
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

cat /etc/security/limits.conf
* soft nofile 1048576
* hard nofile 1048576


查看pid具体限制确实存在
cat /proc/28492/limits | grep files

官方配置信息,,默认值23,不过新版本已经废弃了视乎,在系统中修改也无效果,并且系统内核日志没有任何报错,属于transmission自身一个BUG,在挂多个m2ts多文件的pt站中,因为非一个iso,多个peer区块化,一个peer会很容易打开多个文件,很容易复现问题。

查看fdlimit.c文件代码中,写死了1024限制,,看看有什么办法修改它。
tail -f /var/log/messages
May 2 20:22:24 localhost transmission-daemon[15483]: Changed open file limit from 65535 to 1024 (fdlimit.c:380)


服务器需要挂3000+ torrent,配置为下,不考虑低配置运行的内存开销
Cpu:2680v3*2
内存:16g ddr4*24=384g
硬盘:pice 三星PM1725 6.4t *8 raid10
网卡:10g *4
Last edited by 1265578519 on Fri May 03, 2019 12:55 am, edited 2 times in total.
1265578519
Posts: 2
Joined: Fri May 03, 2019 12:31 am

Re: linux transmission 2.94报错"unable to save resume file: too many open files"

Post by 1265578519 »

服务器需要挂3000+ torrent,配置为下,不考虑低配置运行的内存开销
Cpu:2680v3*2
内存:16g ddr4*24=384g
硬盘:pice 三星PM1725 6.4t *8 raid10
网卡:10g *4
Post Reply