利用 nice & renice 設定程式執行優先權

在一個 CPU LOAD 老是在 100% 的工作站上,仔細的將每一個程式的執行優先權分類一下,可以大幅提升每個執行中程式的運作效能。像是 MRTG 這種東西都應該盡量以較低的優先權來執行,才能避免影響到需要高執行效能的程式運作,這時可以利用 nice 和 renice 兩個指令來設定優先權。

例如 nice -n 15 /usr/local/bin/mrtg mrtg./usr/local/etc/mrtg.cfg

其中的 15 指的是這個程式執行時的 "NICE value"。NICE value 愈高,代表優先權愈低,但只有 superuser 能夠設定低於 0 的值。若是想要改變一個執行中程式的優先權就是利用 renice,用法幾乎一樣,同樣的只有 superuser 能夠設定低於 0 的值。對於想要有穩定且高執行效率的程式,便應該將 nice 值調低,相反則調高,其 NICE value 可以由 top 或 ps -l 指令查閱。

703 Responses to “利用 nice & renice 設定程式執行優先權”


  1. 1 BbbfStavy
  2. 2 synthroid coupon
  3. 3 Zoljneeda
  4. 4 Cndyfloaf
  5. 5 buy generic tadalafil online uk
  6. 6 zestoretic 10
  7. 7 ez pharmacy
  8. 8 azithromycin 10 pills
  9. 9 lisinopril price comparison
  10. 10 valtrex prescription online
  11. 11 BcedStavy
  12. 12 synthroid tab 150mcg
  13. 13 prescription
  14. 14 pharmacy
  15. 15 medication
  16. 16 pharmacy
  17. 17 drugs

    [url=https://lasixtbs.online/]furosemide online canada[/url]

  18. 18 tablets
  19. 19 online
  20. 20 cheap
  21. 21 drugs
  22. 22 San_nib

    https://santex-service.ru вызов сантехника.
    вызов сантехника https://santex-service.ru.
    срочный вызов сантехника https://santex-service.ru.
    сантехник вызов https://santex-service.ru.
    https://santex-service.ru сантехник на дом.

  23. 23 online
  24. 24 prescription
  25. 25 MatthewRuima

    сервисный центр apple адреса

  26. 26 WtmgStavy

    Significant prolongation of disease-free period gained by oral polysaccharide K PSK administration after curative surgical operation of colorectal cancer.
    Medical experts agree you should sildenafil prescription online after you compare online offerings
    Have you ever been hospitalized?

  27. 27 WbyuStavy

    People who have a family history of Type 2 diabetes should talk to their doctor about being screened for the condition, Sood said, because a family history of the disease increases the risk of developing Type 2 diabetes.
    Check out special offers to ivermectin 10 ml prices and regular pharmacy prices?
    Should you have him call again later if he does not improve?

  28. 28 Aoolkeype

    Adults are contagious one day before getting symptoms and up to 7 days after becoming ill.
    offers received from pharmacies to get low prices when you online pharmacy exam as a successful option.|
    Age Risk for brain tumors increases with age.

  29. 29 Afsdfloaf

    In many cases, hypertension seems to develop with age.
    Customers satisfaction guarantee at vardenafil tablets 20mg so you can save money
    Don’t ever delay getting medical attention if you suspect appendicitis.

  30. 30 asthalin inhaler uses in telugu
  31. 31 erek erek ceroboh

    Hello i am kavin, its my first occasion to commenting anywhere, when i read this paragraph i thought i could also make comment due
    to this good paragraph.

  1. 1 porn
  2. 2 madridbet
  3. 3 porn

Leave a Reply