| To: | "hch@xxxxxxxxxxxxx" <hch@xxxxxxxxxxxxx>, "david@xxxxxxxxxxxxx" <david@xxxxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | Preallocation with direct IO? |
| From: | "amit.sahrawat83@xxxxxxxxx" <amit.sahrawat83@xxxxxxxxx> |
| Date: | Thu, 29 Dec 2011 13:10:49 +0000 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:subject:to:reply-to:mime-version:x-priority :content-type:content-transfer-encoding; bh=X9EE7BZSf/VeX4ez+qaSY4m2l2bRhfeGTpU5oT8cpvg=; b=Gol3jNsn5+Iw/ihKiIDyfU0lcxZje9gqw43BkVcHV6k/cdpu3kMYTNlzB2+CKy15Wa 5Fg/jZEcp/7n+nRRBUvdUn7T2dyY2FLKYx7uJa2JhgjNHE8r9Ab0cxXmujjq5DvpHTEa 5AGEGzG3vl3wFiQoEeAs71pwEq3qEVK6KGRPU= |
| Reply-to: | amit.sahrawat83@xxxxxxxxx |
Hi, I am using a test setup which is doing write using multiple threads using direct IO. The buffer size which is used to write is 512KB. After continously running this for long duration - i observe that number of extents in each file is getting huge(2K..4K..). I observed that each extent is of 512KB(aligned to write buffer size). I wish to have low number of extents(i.e, reduce fragmentation)... In case of buffered IO- preallocation works good alongwith the mount option 'allocsize'. Is there anything which can be done for Direct IO? Please advice for reducing fragmentation with direct IO. Thanks & Regards, Amit Sahrawat Sent from my Nokia phone |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: bug in fs/xfs/xfs_aops.c:959! (kernel 3.1.5), Jeremy Sanders |
|---|---|
| Next by Date: | [PATCH] xfstests: Introduce a new SEEK_DATA/SEEK_HOLE tester, Jeff Liu |
| Previous by Thread: | Another SEEK_DATA/SEEK_HOLE tester, Jeff Liu |
| Next by Thread: | Re: Preallocation with direct IO?, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |