From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933403AbcBPXzF (ORCPT ); Tue, 16 Feb 2016 18:55:05 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:57760 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933243AbcBPXzE (ORCPT ); Tue, 16 Feb 2016 18:55:04 -0500 Date: Tue, 16 Feb 2016 15:55:02 -0800 From: Greg Kroah-Hartman To: Edward Cree Cc: linux-kernel@vger.kernel.org Subject: Re: Idea for reducing sysfs memory usage Message-ID: <20160216235502.GA14565@kroah.com> References: <56C3B4E9.7030207@cantab.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56C3B4E9.7030207@cantab.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2016 at 11:46:49PM +0000, Edward Cree wrote: > Sorry if this has been suggested before, but if so I couldn't find it. > Short version: could a sysfs dir reference a list of default attributes > rather than having to instantiate them all? Shorter version, why do you think it is? :) Have you done some testing of the amount of memory that sysfs entries consume and found any problems with it? Remember, a s390 system with 20000 disks works just fine with a very little memory footprint, a lot of work has gone into making sysfs consume tiny amounts of memory. thanks, greg k-h