在使用群辉大量下载时遇到Too many open files问题,查阅相关资料后发现tr的limit数是写死的。这里使用C程序动态修改tr的limit数。
1.创建一个limit.C源文件并输入如下代码
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
int main(int argc, char** argv) {
pid_t pid;
struct rlimit new_limit;
int result;
if (argc < 2) {
return 1;
}
pid = atoi(argv[1]);
new_limit.rlim_cur = 60000;
new_limit.rlim_max = 60000;
result = prlimit(pid, RLIMIT_NOFILE, &new_limit, NULL);
return result;
}
2.编译程序
使用安装好的GCC编译器编译程序,/opt/bin/gcc limit.c -o limit
3.运行程序修改tr limit 数量
先获取tr的pidps -ef | grep transmission
然后使用./limit 刚刚获取的pid
修改tr的limit数量即可。
%%
How are you people. We have cloned cards with huge balance. Our clone prepaid cards work in all ATMs of the world. You can get monies from ATMs without any problems. The parcel is 100% secure. Transfer of the cloned card in 3-6 days. Our hacker group has been in the dark market for more than 10 years. We sell prohibited goods: cloned cards, hacked credit cards, prepaid cards from different countries, cheap Western Union transfers and prepaid PayPal accounts. We make good discounts for wholesale buyers.
Cloned paypal acc [url=http://sale-cloned-cards.cc]http://sale-cloned-cards.cc[/url]
1 Card Total Balance: $3 100 - Price $ 110.00 Western Union Transfers $1000 - Price $ 99.00 PayPal Transfers $500 - Price $ 49.00 3 Cards Total Balance ? $9 600 - Price $ 180.00 PayPal Transfers $2000 - Price $ 149.00 Western Union Transfers $300 - Price $ 249.00
*Prices on the website may vary slightly
Marcet Credit cards Sale Credit cards Buy dumps card Dumps Paypal buy Buy Cloned Cards Buy Credit Cards Buy Clon Card Store Cloned cards Shop Cloned cards Store Credit cards Hacked Credit cards Shop Credit cards
[url=http://buy-cloned-cards.link]http://buy-cloned-cards.link[/url]
Hello, Neat post. There is a problem together with your site in web explorer,
might test this? IE still is the market leader and a big
component of people will miss your wonderful writing because of this problem.
К ним относятся такие игры, как
The Dragon Master (один из наших лучших вариантов на
Brillx), Wild Wizard, Super Fruit 21 и Bananas.
Why people still make use of to read news papers when in this technological world all is accessible on web?
%%
%%
%%
Great beat ! I would like to apprentice even as you amend your web site,
how could i subscribe for a blog website? The account aided me a acceptable deal.
I had been tiny bit familiar of this your broadcast provided vibrant clear concept
%%
%%
%%
%%
%%
%%
%%
[url=https://erythromycina.online/]erythromycin 500mg tablets[/url]
%%
Pretty section of content. I just stumbled upon your web site and in accession capital to assert that I get in fact enjoyed account your blog posts.
Anyway I will be subscribing to your feeds and even I achievement you access consistently quickly.
%%