lkml.org 
[lkml]   [2013]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2] fs/ext4: increase parallelism in updating ext4 orphan list
On 10/03/2013 06:28 PM, Andreas Dilger wrote:
>
> It would also be possible to have a completely contention-free orphan
> inode list by only generating the on-disk orphan linked list in a
> pre-commit callback hook from an efficient in-memory list. That would
> allow the common "add to orphan list; do something; remove from list"
> operations within a single transaction to run with minimal contention,
> and only the few rare cases of operations that exceed the lifetime of
> a single transaction would need to modify the on-disk list.
>
> For example, a per-cpu list would be quite efficient, or a hash table.
> Then, a jbd2 callback run before the transaction commits could modify
> the requisite inodes and superblock. All of those inodes are already
> (by definition) part of the transaction, so it won't add new buffers
> of the transaction.
>
> I'm not necessarily against the current patch, just thinking aloud about
> how it might be improved further.
>
> Cheers, Andreas
>

Thanks again for the suggestion. I'll rework this patch first and look into this possibility next.

Thanks,
Mak.




\
 
 \ /
  Last update: 2013-10-04 07:41    [W:1.274 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site