On 16/02/16 23:55, Greg Kroah-Hartman wrote:
On Tue, Feb 16, 2016 at 11:46:49PM +0000, Edward Cree wrote:Two reasons:
Sorry if this has been suggested before, but if so I couldn't find it.Shorter version, why do you think it is? :)
Short version: could a sysfs dir reference a list of default attributes
rather than having to instantiate them all?
Have you done some testing of the amount of memory that sysfs entries
consume and found any problems with it?
a) in his netdev1.1 talk "Scaling the Number of Network Interfaces on
Linux",
David Ahern claimed a memory overhead of (iirc) about 45kB per
netdevice,
of which he attributed (again, iirc) about 20kB to sysfs entries. He
also
indicated that this was a problem for his use case. (My apologies to
David if I've misrepresented him. CCed him so he can correct me.)