From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753662AbcADWz5 (ORCPT ); Mon, 4 Jan 2016 17:55:57 -0500 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:45976 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753269AbcADWzy (ORCPT ); Mon, 4 Jan 2016 17:55:54 -0500 Date: Mon, 4 Jan 2016 22:55:44 +0000 From: One Thousand Gnomes To: "Austin S. Hemmelgarn" Cc: Greg KH , Pierre Paul MINGOT , jslaby@suse.cz, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Add possibility to set /dev/tty number Message-ID: <20160104225544.158dc847@lxorguk.ukuu.org.uk> In-Reply-To: <568ABCBD.3070909@gmail.com> References: <20160104154305.GA24533@kroah.com> <568AA47D.6010604@gmail.com> <20160104171121.GA25961@kroah.com> <568ABCBD.3070909@gmail.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.29; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > If the console isn't initialized by userspace, is any of that space > > still really being used? Have you tried that? > I'm pretty certain that most of the space that gets taken up by the > scrollback buffer and screen isn't directly used unless the console is > used, but there are still structures that get allocated at driver > instantiation for each VT, including the device structures and such. So fix that instead. And really for low memory embedded why do you even have the VT layer in your system in the first place ? > > If we remove the number of devices, those "broken" userspace programs > > will also break, so that implies that we should not allow this change. > No, the software should just need to be recompiled (I've tested this > with ConsoleKit, which also fails gracefully when it tires to open a tty > device that doesn't exist), or adapted to dynamically detect the number > of TTYs (like it should have in the first place for portability reasons). We don't do regressions. > device drivers). I doubt that it will work out to any more than 16k size > difference, but that's still a few more pages (on most systems) that > could be used for other things. And those embedded devices can almost certainly save more by just not including the vt layer. Alan