From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tao Ma Subject: Re: OOM problem caused by fs Date: Wed, 09 Jun 2010 12:01:04 +0800 Message-ID: <4C0F1200.9030904@oracle.com> References: <20100607095341.GM26335@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org To: Seth Huang Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:35698 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707Ab0FIEBz (ORCPT ); Wed, 9 Jun 2010 00:01:55 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Seth, On 06/08/2010 01:34 AM, Seth Huang wrote: >> Are you using set_page_dirty to dirty the pages? > > Since part of our fs resembles nfs, we use > __set_page_dirty_nobuffers() for > address_space_operations->set_page_dirty, the same way nfs works. > >> Are you sure you don't have a refcount leak? > > One of my partners have already checked the page flags and reference > count. They seem to be all right. > Maybe we should check them again. Which kernel version do you use? Have you tried to change vm.lowmem_reserve_ratio? Check Documentation/sysctl/vm.txt for how to use it. Regards, Tao