利用 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 指令查閱。

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


  1. 1 Robertslirm

    https://gabapentin.top/# cost of neurontin 800 mg

  2. 2 Danielgit

    ventolin prices cheap ventolin online
    https://gabapentin.top/# neurontin cream

  3. 3 Thomasenesy

    https://deltasone.icu/# cheap prednisone online

  4. 4 RobertDig
  5. 5 Stevenlon

    metformin xr 500mg buy metformin online without a prescription
    https://deltasone.icu/# canada pharmacy prednisone
    prednisone 40 mg prednisone brand name in usa

  6. 6 BoozEn
  7. 7 Stevenlon

    amoxicillin capsules 250mg augmentin antibiotic
    https://sildenafil.pro/# buy sildenafil 20 mg tablets
    canadian pharmacy generic tadalafil tadalafil online without prescription

  8. 8 Jxecsoame

    how to mention a book in an essay how to write a good introduction for an essay opinion essay examples

  9. 9 Henrydop

    generic tadalafil 10mg tadalafil price

  10. 10 Henrydop

    amoxicillin 500 coupon buy amoxicillin online cheap

  11. 11 MerleMip

    buy cheap bactrim amoxicillin no prescription

  12. 12 RaymondGok

    https://sildenafil.pro/# sildenafil 96743

  13. 13 WaynePax

    tadalafil tablets price in india buy generic tadalafil

  14. 14 Nsbusoame

    how to get female viagra pill viagra price in malaysia viagra without prescription usa

  15. 15 RaymondGok

    https://sildenafil.pro/# sildenafil 20mg generic cost

  16. 16 Josephwax

    lisinopril 80mg buy lisinopril mexico

  17. 17 PhilipHic

    vipps approved canadian online pharmacy online pharmacy usa
    https://lipitor.icu/# lipitor simvastatin

  18. 18 Raymondsob

    https://lisinopril.icu/# how much is lisinopril 10 mg

  19. 19 Brandenclido

    ciprofloxacin buy cipro online

  20. 20 MichaelfuT
  21. 21 Josephwax

    canadian pharmacy antibiotics best australian online pharmacy

  22. 22 abormaHok

    Tadalafil had no significant effect on exposure AUC to S-warfarin or R-warfarin, nor did tadalafil affect changes in prothrombin time induced by warfarin generic for cialis

  23. 23 Vernoncrymn

    new covid drug molnupiravir 200 mg

  24. 24 JosephFag

    molnupiravir capsules 200 mg buy molnupiravir
    https://withoutdoctorprescription.xyz/# online canadian pharmacy

  25. 25 Dennisseara

    https://viagracanada.xyz/# when is generic viagra available

  26. 26 MarkzEn
  27. 27 Matthewget

    https://tamoxifen.best/# nolvadex steroids

  28. 28 Josephsless

    when to take viagra for best results viagra alternatives over the counter

  29. 29 Matthewget

    https://viagracanada.xyz/# what was viagra originally made for

  30. 30 AndreCiz

    https://paxlovid.best/# paxlovid approval

  31. 31 Dennisseara

    https://viagracanada.xyz/# generic viagra from canada

  32. 32 DavidSliny

    ivermectin uses ivermectin products

  33. 33 EnsJuine

    price of viagra 100mg tablet purchase viagra no prescription can you buy generic viagra over the counter

  34. 34 JimzEn
  35. 35 JamesReina

    clomid uk buy clomid
    https://ed-pills.xyz/# cheap erectile dysfunction pills online

  36. 36 Arthuravalm

    https://doxycycline.pro/# doxycycline price singapore
    doxycycline 25mg doxycycline online pharmacy uk

  37. 37 Brandonzem

    impotence pills buy ed pills

  38. 38 MiclCex
  39. 39 GordonMaw

    mens erection pills ed meds online
    https://pharmacywithoutprescription.best/# prescription free canadian pharmacy
    prescription free canadian pharmacy canada drugs coupon code

  40. 40 GordonMaw

    the best ed pills generic ed pills
    https://pharmacywithoutprescription.best/# canada pharmacy coupon
    ed medication ed treatment drugs

  41. 41 JudsonBut

    cross border pharmacy canada canada rx pharmacy
    https://antibioticwithoutpresription.shop/# bactrim antibiotic online prescriptions

  42. 42 Calvinwap
  43. 43 KevinLex

    order amoxicillin no prescription order doxycycline 100mg without prescription
    https://erectionpills.top/# ed pills for sale
    safe online pharmacies in canada canadian pharmacy viagra 50 mg

  44. 44 GordonMaw

    zithromax online usa no prescription amoxicillin 500 mg without prescription
    https://canadianpharmacy.best/# canadianpharmacy com
    legit non prescription pharmacies canadian pharmacy coupon code

  45. 45 Ofitynctotvl

    order generic vardenafil 20mg order levitra pill levitra canada

  46. 46 Calvinwap

    ordering drugs from canada canadian pharmacy phone number

  47. 47 GordonMaw

    online canadian pharmacy canada pharmacy online legit
    https://erectionpills.top/# ed pills
    canadian pharmacy without prescription buying prescription drugs from canada

  48. 48 KevinLex

    canadian pharmacy no prescription canada drugs coupon code
    https://erectionpills.top/# top ed pills
    cheap erectile dysfunction best ed drug

  49. 49 DavidEdirm
  50. 50 GordonMaw

    canadian pharmacy price checker canadianpharmacy com
    https://erectionpills.top/# cheap erectile dysfunction
    best online canadian pharmacy canadian pharmacy scam

Leave a Reply