[patch 4/4] Btrfs: pass __GFP_WRITE for buffered write page allocations

2011-09-20 Thread Johannes Weiner
Tell the page allocator that pages allocated for a buffered write are expected to become dirty soon. Signed-off-by: Johannes Weiner jwei...@redhat.com --- fs/btrfs/file.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index

[patch 0/4] 50% faster writing to your USB drive!*

2011-09-20 Thread Johannes Weiner
*if you use ntfs-3g copy files larger than main memory or: per-zone dirty limits There have been several discussions and patches around the issue of dirty pages being written from page reclaim, that is, they reach the end of the LRU list before they are cleaned. Proposed reasons for this are

[patch 1/4] mm: exclude reserved pages from dirtyable memory

2011-09-20 Thread Johannes Weiner
The amount of dirtyable pages should not include the total number of free pages: there is a number of reserved pages that the page allocator and kswapd always try to keep free. The closer (reclaimable pages - dirty pages) is to the number of reserved pages, the more likely it becomes for reclaim

[patch 2/4] mm: writeback: distribute write pages across allowable zones

2011-09-20 Thread Johannes Weiner
This patch allows allocators to pass __GFP_WRITE when they know in advance that the allocated page will be written to and become dirty soon. The page allocator will then attempt to distribute those allocations across zones, such that no single zone will end up full of dirty, and thus more or

Re: [patch 4/4] Btrfs: pass __GFP_WRITE for buffered write page allocations

2011-09-20 Thread Johannes Weiner
On Tue, Sep 20, 2011 at 03:45:15PM +0200, Johannes Weiner wrote: Tell the page allocator that pages allocated for a buffered write are expected to become dirty soon. Signed-off-by: Johannes Weiner jwei...@redhat.com --- fs/btrfs/file.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [patch 4/4] Btrfs: pass __GFP_WRITE for buffered write page allocations

2011-09-20 Thread Josef Bacik
On 09/20/2011 09:56 AM, Johannes Weiner wrote: On Tue, Sep 20, 2011 at 03:45:15PM +0200, Johannes Weiner wrote: Tell the page allocator that pages allocated for a buffered write are expected to become dirty soon. Signed-off-by: Johannes Weiner jwei...@redhat.com --- fs/btrfs/file.c |2

Re: [patch 4/4] Btrfs: pass __GFP_WRITE for buffered write page allocations

2011-09-20 Thread Johannes Weiner
On Tue, Sep 20, 2011 at 10:09:38AM -0400, Josef Bacik wrote: On 09/20/2011 09:56 AM, Johannes Weiner wrote: On Tue, Sep 20, 2011 at 03:45:15PM +0200, Johannes Weiner wrote: Tell the page allocator that pages allocated for a buffered write are expected to become dirty soon.

Re: [patch 3/4] mm: filemap: pass __GFP_WRITE from grab_cache_page_write_begin()

2011-09-20 Thread Christoph Hellwig
In addition to regular write shouldn't __do_fault and do_wp_page also calls this if they are called on file backed mappings? -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: Inefficient storing of ISO images with compress=lzo

2011-09-20 Thread David Sterba
On Mon, Sep 19, 2011 at 10:53:45AM +0800, Li Zefan wrote: With compress option specified, btrfs will try to compress the file, at most 128K at one time, and if the compressed result is not smaller, the file will be marked as uncompressable. I just tried with Fedora-14-i386-DVD.iso, and the

Re: [patch 1/4] mm: exclude reserved pages from dirtyable memory

2011-09-20 Thread Rik van Riel
On 09/20/2011 09:45 AM, Johannes Weiner wrote: The amount of dirtyable pages should not include the total number of free pages: there is a number of reserved pages that the page allocator and kswapd always try to keep free. The closer (reclaimable pages - dirty pages) is to the number of

[no subject]

2011-09-20 Thread Ken D'Ambrosio
Just wondering if/how one goes about getting the btrfs checksum of a given file. Is there a way? Thanks! -Ken -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: your mail

2011-09-20 Thread Hugo Mills
On Tue, Sep 20, 2011 at 11:24:30AM -0400, Ken D'Ambrosio wrote: Just wondering if/how one goes about getting the btrfs checksum of a given file. Is there a way? Checksums are computed on individual 4k blocks, not on the whole file. There's no explicit interface for retrieving checksums, but

Re: your mail

2011-09-20 Thread Hugo Mills
[Your Reply-to: header was screwed up, so I'm sending this again. From: Ken D'Ambrosio k...@jots.org Reply-to: File's...@jots.org, checksum?@jots.org ] On Tue, Sep 20, 2011 at 04:35:40PM +0100, Hugo Mills wrote: On Tue, Sep 20, 2011 at 11:24:30AM -0400, Ken D'Ambrosio wrote: Just

Re: [GIT PULL] Btrfs fixes

2011-09-20 Thread Sage Weil
Hi Chris- This pull misses the clone reservation fix again... :) http://www.spinics.net/lists/linux-btrfs/msg11826.html Thanks! sage On Mon, 19 Sep 2011, Chris Mason wrote: Hi everyone, The for-linus branch of the btrfs tree on github: Head commit:

Re: [patch 2/4] mm: writeback: distribute write pages across allowable zones

2011-09-20 Thread Rik van Riel
On 09/20/2011 09:45 AM, Johannes Weiner wrote: This patch allows allocators to pass __GFP_WRITE when they know in advance that the allocated page will be written to and become dirty soon. The page allocator will then attempt to distribute those allocations across zones, such that no single zone

Re: [patch 3/4] mm: filemap: pass __GFP_WRITE from grab_cache_page_write_begin()

2011-09-20 Thread Rik van Riel
On 09/20/2011 10:25 AM, Christoph Hellwig wrote: In addition to regular write shouldn't __do_fault and do_wp_page also calls this if they are called on file backed mappings? Probably not do_wp_page since it always creates an anonymous page, which are not very relevant to the dirty page cache

Re: [patch 3/4] mm: filemap: pass __GFP_WRITE from grab_cache_page_write_begin()

2011-09-20 Thread Christoph Hellwig
On Tue, Sep 20, 2011 at 02:38:03PM -0400, Rik van Riel wrote: On 09/20/2011 10:25 AM, Christoph Hellwig wrote: In addition to regular write shouldn't __do_fault and do_wp_page also calls this if they are called on file backed mappings? Probably not do_wp_page since it always creates an

Re: [patch 4/4] Btrfs: pass __GFP_WRITE for buffered write page allocations

2011-09-20 Thread Rik van Riel
On 09/20/2011 09:45 AM, Johannes Weiner wrote: Tell the page allocator that pages allocated for a buffered write are expected to become dirty soon. Signed-off-by: Johannes Weinerjwei...@redhat.com Reviewed-by: Rik van Riel r...@redhat.com -- To unsubscribe from this list: send the line

[GIT PULL] missed btrfs fix

2011-09-20 Thread Chris Mason
Sage mentioned I was missing a patch. So I've retested and updated the git tree. Since Linus did pull my tree yesterday, here's a new pull request with the single commit. Linus I have this in two flavors. One is merged on top of my for-linus branch, which was 3.1-rc6 + my last pull request:

Re: kernel BUG at fs/btrfs/inode.c:2299

2011-09-20 Thread Maciej Marcin Piechotka
On Mon, 2011-09-19 at 02:44 +0200, Maciej Marcin Piechotka wrote: On Tue, 2011-08-30 at 14:27 +0800, Miao Xie wrote: Unfortunately it results in freeze of system and I cannot give more details. Sometimes it happens not from fcron but then it does not result in freeze (???).