Re: [PATCH v4 09/31] dio: create a dio_aligned() helper function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/03/2012 09:39 PM, Andi Kleen wrote:
> On Mon, Dec 03, 2012 at 09:21:34PM -0600, Dave Kleikamp wrote:
>> I'm not sure what's preferable here. As the comment states, the code is
>> making an effort to avoid a cache miss by avoiding the reference to bdev
>> when possible. If this micro-optimization is worth keeping, then it's a
>> question of which is uglier, this new function that modifies blkbits, or
>> duplicating this bit of code three times.
> 
> The optimization was a quite measurable win on a large OLTP benchmark.
> I think it's worth keeping.

Thanks. I think I'll just drop that patch and add a third instance of
that code snippet in the later one. The simpler I can keep the patchset,
the better. Someone can clean it up later if they have a better idea.

Shaggy
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux