在使用群辉大量下载时遇到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数量即可。
[url=https://flagyltabs.monster/]generic flagyl generic flagyl[/url]
Situs web yatu rumah menufut berbagaі Slߋt Online online sama banyak
alternatif konsep dan opsi yang sungguh berselisih.
Skor88 - Info terbaru dari para pednggemar game online yang saat
ini sukses dalam hidupnya hanya dengan bermain game lewwat seluler.
Профессиональная раскрутка
сайтов под любые поисковые
системы. Работаем по всему миру.
Мы компания с мировым именем.
Занимаемся раскруткой сайтов с 2004 года.
Выполняем качественные прогоны сайтов и
созданием обратных ссылок.
Только качественный линкбилдинг по самым низким ценам.
Так же мы занимаемся продажей
качественных баз для Seo
Програм Xrumer и GSA Search Engine Ranker. Все базы имеют бесплатные обновления в течении 12 месяцев.
Кроме того у нас вы можете приобрести прокси ip v6 для решения рекапчи при помощи специализированных програм.
Заходите на наш сайт и ознакомьтесь со всеми продуктами
прокси для решения рекапчи
Nicely put, Cheers.
online meds [url=https://online-pharmacy-inc.com/]online pharmacy overnight delivery[/url] international pharmacies that ship to the usa
viagra canadian pharmacy legit online shopping pharmacy india online pharmacy with no prescription
https://online-pharmacy-inc.com/ thesis dissertation writing
" Performing was my real love, as well as I hid that opportunity by going into grown-up movies," claimed Reems.
This blog was... how do you say it? Relevant!! Finally I have
found something which helped me. Many thanks!
https://tomato-perez.ru/
Way cool! Some very valid points! I appreciate you penning this post
and also the rest of the website is very good.
[url=http://dapoxetinetabs.online/]dapoxetine premature ejaculation[/url]
[url=http://tetracyclinesumycin.shop/]tetracycline 250 mg price[/url]
[url=http://plavix.life/]plavix price[/url]
Very efficiently written post. It will be valuable to everyone who usess it, including myself.
Keep doing what you are doing - can'r wait to read more posts.
[img]https://seoprofisional.ru/image/cache/catalog/foru-500x500.jpg[/img]
Xrumer и GSA, allsubmitter
Мы можем вам предложить такую услгу как:
seo продвижение интернет магазина заказать
Если Вы хотите, чтоб Ваш сайт привлекал как можно
больше посетителей, то нужно, чтоб он был
не только полезным и удобным, но и
хорошо оптимизированным для поисковиков.
Это потребует немало усилий и затрат, однако если хотите здорово ускорить процесс и ощутимо поднять сайт в результате выдачи,
то можно использовать прогон сайта хрумером.
Таким образом Вы можете не только быстрей
получить желаемый результат, но и даже сэкономить время и деньги.
[b]ДЛЯ СВЯЗИ С НАМИ ПИШИТЕ В СКАЙП ЛОГИН
ЛИБО В [/b]
Ingesting a healthy diet plan will allow you to stay youthful.
Your daily diet ought to include very low quantities of saturated fats,
fresh vegetables and cereals, although slicing the bad cholesterol and fatty acids.
This is the way you may provide your body every one
of the nutrients and vitamins it must be solid and healthful.
[url=http://viagratab.com/]cheap viagra 100[/url]
Definitely believe that which you said. Your favorite justification appeared to be on the internet the easiest thing to be
aware of. I say to you, I definitely get irked while people consider worries that they just do not know about.
You managed to hit the nail upon the top and also defined out the whole thing without having side-effects , people could take a signal.
Will probably be back to get more. Thanks
[url=https://anafranil.life/]buy anafranil online uk[/url] [url=https://diclofenactabs.quest/]voltaren gel otc[/url] [url=https://zofran.sbs/]generic zofran price[/url] [url=https://buyzoloft.life/]50 zoloft[/url] [url=https://clonidinetab.shop/]clonidine 0.3[/url] [url=https://nexiumtabs.online/]generic for nexium[/url]
Very good write-up. I absolutely love this website.
Stick with it!
only punjabi sex desi pregnant xvideo pela peli blue picture more on http://alexazoey.com/__media__/js/netsoltrademark.php?d=nudemodelspics.com%2Fplayboy-laura-lynn-high-heels.html big hero
6 porn tamil hot movie porn click http://annehuntington.email/__media__/js/netsoltrademark.php?d=nudemodelspics.com%2Fmr-chews-asian-beaver-miko.html
sophia leone squirt masturbation softcore black anal group sex tamil aunty 300 more on http://homesinsilverspringmd.com/__media__/js/netsoltrademark.php?d=nudemodelspics.com%2Fsexxy-brandon-areana.html