From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266350AbUGAXWV (ORCPT ); Thu, 1 Jul 2004 19:22:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266362AbUGAXWV (ORCPT ); Thu, 1 Jul 2004 19:22:21 -0400 Received: from sccrmhc12.comcast.net ([204.127.202.56]:28637 "EHLO sccrmhc12.comcast.net") by vger.kernel.org with ESMTP id S266350AbUGAXWU (ORCPT ); Thu, 1 Jul 2004 19:22:20 -0400 To: linux-kernel@vger.kernel.org Subject: Re: io priorities? In-reply-to: <20040701155637.74af8c0d.akpm@osdl.org> References: <20040701155637.74af8c0d.akpm@osdl.org> Comments: In-reply-to Andrew Morton message dated "Thu, 01 Jul 2004 15:56:37 -0700." Date: Thu, 01 Jul 2004 17:15:38 -0600 From: Sebastian Kuzminsky Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Andrew Morton wrote: ] "Richard B. Johnson" 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