Re: io priorities?

From: Sebastian Kuzminsky
Date: Thu Jul 01 2004 - 18:23:11 EST


Andrew Morton <akpm@xxxxxxxx> wrote:
] "Richard B. Johnson" <root@xxxxxxxxxxxxxxxxxx> wrote:
] > Periodically fsync() the logs so there isn't soooo much stuff to
] > write. In fact, a simple sync() call about once every few seconds
] > should make everything work,
]
] Yup. Alternatively, set /proc/sys/vm/dirty_ratio and /proc/sys/vm/dirty_background_ratio
] to really small values. Say, 2 and 1.


Thanks guys, that sort of fixes it, but not really. Occasionally i get
a big load of IO (copying tens of megs of log files around), and even if
i synced a second before, now there's tens of seconds of IO in the queue,
and my next fsync() still drags on.


Really i just want this one process to go to the front of the queue, any
time it has IO to do, independent of what the rest of the system is doing.




--
Sebastian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/