Re: [PATCH 3/7] sysfs: Keep an nlink count on sysfs directories.

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

 



Benjamin LaHaise <bcrl@xxxxxxxx> writes:

> On Mon, Jan 11, 2010 at 05:06:53PM -0800, Eric W. Biederman wrote:
>> I don't see the link count as interesting enough to store more than
>> 16bits for it.  Even with 32bits of storage for nlink sysfs would have
>> to have to handle the rollover case as I am doing now.  So I don't
>> see any advantage to storing more bits.
>
> I'm not terribly concerned with what value gets returned, but rather about 
> how long is spent calculating it.  Ideally, new sysfs directory entries 
> can be inserted in an O(1) or other reasonable order operation.  I'll try 
> to find some time to re-run my interface scaling tests with your latest 
> changes.

Sounds good.  My changes so far have been the easy low hanging fruit.

readdir should be at O(N) and stat etc should all be constant time.
Lookups by name are still O(N), and I'm not ready to look at going
better until after I have network namespace support into sysfs.

Eric


--
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