From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 1796B7F3F for ; Wed, 16 Oct 2013 07:23:44 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay2.corp.sgi.com (Postfix) with ESMTP id D84A8304043 for ; Wed, 16 Oct 2013 05:23:43 -0700 (PDT) Received: from keptprivate.com (keptprivate.com [38.117.1.51]) by cuda.sgi.com with ESMTP id VJYUDiUt70viC15B (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 16 Oct 2013 05:23:42 -0700 (PDT) Message-ID: <525E854F.3090105@keptprivate.com> Date: Wed, 16 Oct 2013 14:23:43 +0200 From: Stefanita Rares Dumitrescu MIME-Version: 1.0 Subject: Re: xfs corrupted References: <1381826507281-35009.post@n7.nabble.com> <20131015203434.2f336fd8@galadriel.home> <525D8D67.2090301@keptprivate.com> <20131015213447.40d05ea0@galadriel.home> <525D9E3B.5040507@keptprivate.com> <20131015202640.GR4446@dastard> In-Reply-To: <20131015202640.GR4446@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com I have a small 40 gb ssd and i tried to do some smart stuff by resizing the os partition to try to increase the swap, and i botched it, so i reloaded quickly centos6 today. I have all the important stuff backed up, so it did not really matter if i reloaded or not, however: I did 1a 14 gb swap partition, but on centos6 the xfs_repair doesn't even go above 2.7 gb, and none of the swap used. I am using xfsprogs-3.1.1-10.el6_4.1.x86_64 So far so good, i see a lot of reads on the botched array, but just to be safe i mounted it first, and tested if i could read the data, and it was all fine. I will keep you updated. Hopefully i can get over with this. On 15/10/2013 22:26, Dave Chinner wrote: > On Tue, Oct 15, 2013 at 09:57:47PM +0200, Stefanita Rares Dumitrescu wrote: >> Since i am using centos 5.9, the version of the xfsprogs seems to be >> old, so i cloned the new one from sgi. >> >> I have a machine with 4 gb ram, and 4 gb swap, and it's all been >> eaten up by xfs_repair, and slowed down to a crawl. >> >> the sdc partition is the one being checked. i am all out of memory >> now. 4 gb phys and 4 gb swap all gone. >> >> http://pastebin.ca/2467064 >> >> posted to pastebin for better formatting. >> >> i was using: >> >> [root@kp4 ~]# xfs_repair -o bhash=16384 -o ihash=16384 -o ag_stride=16 \ >>> /dev/sdc >& /tmp/repair.log > > You don't have enough RAM to run threaded prefetching and parallel > AG processing. You'd do better to turn prefetching off entirely with > "-P" if you are having OOM problems. > >> but now i am trying the -m option to see if the memory can be >> limited, so the server doesn't freeze. >> >> [root@kp4 ~]# xfs_repair -m 3072 -o ag_stride=16 /dev/sdc >& /tmp/repair.log >> >> nothing in dmesg either. > > Give it another 10-20GB of swap, and it should be fine. xfs_repair > usually only thrashes swap when you don't have enough of it and it > keeps trying to free memory, paging in pages that are in swap to > free cached objects from them. Most of the memory references that > repair makes are quite local, so when pages are swapped out they > generally aren't needed again for a while except when cache reclaim > kicks in. Hence if you give it enough swap that it can grow without > bounds, then it should still be quite efficient. > > Keep in mind that badly corrupted filesystems require lots more > memory than clean filesystems to check and repair as there is lots > more intermediate state that repair needs to hold in memory about > partially or incompletely referenced objects. Don't be surprised if > the amount of memory needed to repair a badly broken filesystem is > 10-100x the amount of RAM needed to run xfs_repair on the same clean > filesystem.... > > Cheers, > > Dave. > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs