How to increase the I/O priority of processes

Posted In Linux Tuning, System - By Tum. On Sunday, May 3rd, 2009 With 0 Comments

ใน Linux เราสามารถเพิ่ม หรือลดระดับความรวดเร็วใน การเข้าถึง I/O ได้ในระดับ process โดยใช้คำสั่ง ionice ซึ่งเป็นคำสั่งที่สามารถเรียกดูและแก้ไขค่า I/O scheduling class และ priority ในระดับ process ได้

รูปแบบคำสั่ง

#ionice [-c] [-n] [-p] [COMMAND [ARG…]]

โดยที่

ตัวอย่างการใช้โปรแกรม ionice

กำหนด process ที่ PID 89 ให้เป็น idle io process.
# ionice -c3 -p89

กำหนดให้ bash ทำงานแบบ best-effort และ highest priority.
# ionice -c2 -n0 bash

ดูแค่พารามิเตอร์ของ scheduling class และ priority ของ PID 89
# ionice -p89

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*