public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Jan Evert van Grootheest <j.grootheest@euronext.nl>
Cc: Andrea Arcangeli <andrea@suse.de>,
	Willy Tarreau <willy@w.ods.org>,
	Marcelo Tosatti <marcelo.tosatti@cyclades.com.br>,
	linux-kernel@vger.kernel.org
Subject: Re: log-buf-len dynamic
Date: Tue, 23 Sep 2003 18:06:00 +0200	[thread overview]
Message-ID: <20030923160600.GA4161@alpha.home.local> (raw)
In-Reply-To: <3F706046.1000306@euronext.nl>

[replying to both Jan and Andrea at once]

-- Jan:
> I think it is pretty senseless to have a configuation option for the 
> default size of that buffer. Especially if I can, in one of the first rc 
> scripts, do something like 'echo 128 > /proc/sys/kernel/printkbuffer'.
> The only hard requirement for that default size is that all output up 
> till that rc script fits into a buffer of that size.

I totally agree with this possibility, and it's one I proposed too. I only
proposed to keep the default size in order to be able to catch all boot
messages, but I think that if we make this buffer hot-resizable (and a sysctl
is good for this), then we could systematically pre-allocate 64k at boot which
should be enough for boot messages (16k is too short), and could be reduced
if needed by a write to the sysctl. This way, the config option can go away.

> And yes, I do care about that static 64K buffer. I still have an old 
> pentium that only has 16M. Every byte counts!

My previous firewall add 8M, and I second your statement : every byte counts !

> Andrea Arcangeli wrote:
> >>You're only thinking about what distro vendors should do. If all kernels 
> >>should
> >>suit their needs, then there would not be any config anymore, and everyone
> >>would have the same kernel with the same wagon of command line arguments.
> >
> >
> >this is actually not true. Many options are way too costly to recompile
> >every time, or to keep enabled at runtime, it can't be the case for this
> >one. My own self compiled kernel has a very stripped down .config, it's
> >not like a distro kernel with everything included.

I think you're mistaken about what I meant. I didn't mean that I want to
recompile each kernel with a different option, I meant that for a large set
of identical systems, it's more convenient to have a single, stripped down
.config with the most default values, and propagate this same kernel everywhere,
than having to duplicate special kernel parameters in every lilo.conf.

> >the 64k are wasted only when you use the option, if you need more than
> >64k it's unlikely you care about 64k lost.

Absolutely, my concern was most about the case where I need less than 64k and
I have too few memory to agree to waste them.

> > But I'm ok to fix it, it just
> >looks a low priority to fix. Also since you will never use this option
> >anyways since you don't like adding parameters to the kernel, then you
> >don't care about fixing it either, you simply want the additional config
> >option on top of this.

:-)
Andrea, I'm not *that* selfish ! If I did this only for me, I wouldn't even
post it here and risk complaints from people who ask me to add other archs
too. I can live with this as a patch in my kernel, next to your VM and others.
It's just that I felt a need for it on production machines and thought there
were potentially other people in my case. In the same way, I could say that
you're wrong in believing that everyone wants to add a boot option, but I may
be wrong WRT this. That's not the problem. If I asked how to fix it, it's
because I'm interested in doing it myself, but I'm clueless about how to do it
(don't know how to allocate boot mem, don't know how to free it, don't know
if I can reallocate new mem further and free it again by the same means).

> >My whole argument is that being able to do it dynamic is an order of
> >magnitude more important than being able to do it statically, no matter
> >the command line argument and no matter ther 64k lost. You must agree
> >with that. the amount of userbase is just not comparable.

I said I did agree with that, but it's not the same feature. And concerning
the amount of userbase, I agree it's not comparable... I don't imagine desktop
users adding "logbuflen=1048576" to their boot command line, nor can I imagine
them recompiling their kernel changing this option.

> >Not sure what I should do, personally I consider the additional .config
> >option as configuration pollution, but since you care that much I can
> >also change my patch not to reject yours, and to allow the two things to
> >coexist, but I don't think it's really needed. I believe people should
> >be forced to use the kernel params,
^^^^^^^^^^^^^^^^^^^
why do you want to force people to do something the way you think is best ?
I personnaly think that both solutions are a convenient way of achieving the
same goal for different people. Please let them choose.

> >just a mess if each kernel with the same revision number behaves
> >differently, everything becomes less and less predictable.

nothing new here. There are already many options which will make your kernel
behave differently : CPU/ACPI/APM/SCSI/IDE DMA by default/Shutdown Watchdog on
close, to name a few... That's why many of us add a version suffix to
production kernels identifying a known .config.


> >The number of  System.map checks increases and increases before I can
> >identify what kernel is that.

Then don't rely on the default value for your kernels, but only on the boot
option, and the problem is gone. Let us all have the choice. I insist that
your patch is appealing, but it is not the only solution and does not cover
all needs, nor does mine.

Cheers,
Willy



  parent reply	other threads:[~2003-09-23 16:07 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22 19:48 log-buf-len dynamic Andrea Arcangeli
2003-09-23  1:51 ` Matthew Wilcox
2003-09-23 21:08   ` Andrea Arcangeli
2003-09-23  4:28 ` Willy Tarreau
2003-09-23 12:49   ` Andrea Arcangeli
2003-09-23 14:06     ` Willy Tarreau
2003-09-23 14:44       ` Andrea Arcangeli
2003-09-23 15:01         ` Jan Evert van Grootheest
2003-09-23 15:41           ` Andrea Arcangeli
2003-09-23 16:09             ` Willy Tarreau
2003-09-23 16:26               ` Andrea Arcangeli
2003-09-23 16:56             ` Ruth Ivimey-Cook
2003-09-23 17:40               ` Tom Zanussi
2003-09-23 17:53                 ` Andrea Arcangeli
2003-09-23 21:37                   ` Andrew Morton
2003-09-23 22:22                     ` Andrea Arcangeli
2003-09-24  0:15                       ` Andrew Morton
2003-09-24  0:38                         ` Andrea Arcangeli
2003-09-23 16:06           ` Willy Tarreau [this message]
2003-09-23 16:23             ` Andrea Arcangeli
2003-09-23 19:02               ` Willy Tarreau
2003-09-23 22:34                 ` Andrea Arcangeli
2003-09-23 23:29                   ` Willy Tarreau
2003-09-23 23:48                     ` Andrea Arcangeli
2003-09-23 23:50                       ` Willy Tarreau
2003-09-23 12:46 ` Daniel Jacobowitz
2003-09-25 13:40 ` marcelo
2003-09-26 20:26   ` Andrea Arcangeli
     [not found] <20030923142706.54b2428a.davem@redhat.com>
2003-09-23 21:53 ` Linus Torvalds
2003-09-23 22:15   ` Andrea Arcangeli
2003-09-23 22:54     ` Linus Torvalds
2003-09-24  0:36       ` Andrea Arcangeli
2003-09-24  1:19         ` Larry McVoy
2003-09-24  2:04           ` andrea
2003-09-24  2:29             ` Larry McVoy
2003-09-24  2:39               ` Andrea Arcangeli
2003-09-24  3:16                 ` Larry McVoy
2003-09-24  3:31                   ` Rik van Riel
2003-09-24  3:45                     ` Larry McVoy
2003-09-24  3:54                       ` Linus Torvalds
2003-09-24  4:12                         ` Rik van Riel
2003-09-24 21:11                           ` yodaiken
2003-09-24 13:09                       ` Alan Cox
2003-09-24 18:56                         ` Jörn Engel
2003-09-24  3:46                   ` Andrea Arcangeli
2003-09-24  4:02                     ` Larry McVoy
2003-09-24  4:06                     ` Rik van Riel
2003-09-24  2:36             ` Linus Torvalds
2003-09-24  2:48               ` Andrea Arcangeli
2003-09-24  3:06                 ` Linus Torvalds
2003-09-24  3:28                   ` Andrea Arcangeli
2003-09-24  3:38                     ` Linus Torvalds
2003-09-24  3:56                       ` Andrea Arcangeli
2003-09-24  4:26                         ` viro
2003-09-24  3:42                     ` Rik van Riel
2003-09-24  3:11                 ` David S. Miller
2003-09-24 14:43               ` Roman Zippel
2003-09-25  4:08                 ` Miles Bader
2003-09-25  4:20                   ` Nick Piggin
2003-09-25 17:15               ` Eric W. Biederman
2003-09-25 17:30                 ` Linus Torvalds
2003-09-25 17:57                   ` Jeff Garzik
2003-09-25 18:22                   ` Jörn Engel
2003-09-25 18:33                     ` Randy.Dunlap
2003-09-25 18:36                     ` Larry McVoy
2003-09-25 19:02                       ` Jörn Engel
2003-09-25 18:28                   ` Charles Cazabon
2003-09-25 18:29                     ` Larry McVoy
2003-09-25 20:15                       ` David Lang
2003-09-25 20:27                         ` Larry McVoy
2003-09-29  8:56                       ` Rob Landley
2003-09-29 11:24                         ` John Bradford
2003-09-29 12:30                           ` Rob Landley
2003-09-29 15:22                             ` John Bradford
2003-09-29 13:20                           ` Rik van Riel
2003-09-29 13:23                           ` Valdis.Kletnieks
2003-09-29 15:03                             ` Larry McVoy
2003-09-29 18:21                           ` Hua Zhong
2003-09-29 15:07                         ` Larry McVoy
2003-09-25 19:23                   ` Eric W. Biederman
2003-09-25 17:31                 ` Christoph Hellwig
2003-09-25 19:28                   ` Erik Andersen
2003-09-25 17:36                 ` Dave Jones
2003-09-25 18:34                   ` Larry McVoy
2003-09-25 18:35                   ` Eric W. Biederman
2003-09-25 18:49                 ` Larry McVoy
2003-09-25 20:02                   ` Eric W. Biederman
2003-09-25 23:36                   ` Pau Aliagas
2003-09-26  2:25                 ` Miles Bader
2003-09-26  4:38                   ` Davide Libenzi
2003-09-26 17:09                 ` John Goerzen
2003-09-24  7:56       ` Pau Aliagas
  -- strict thread matches above, loose matches on Subject: below --
2003-09-24 17:39 Ken Ryan
2003-09-25 19:43 Mudama, Eric
2003-09-26 13:24 Samium Gromoff
2003-09-26 14:49 ` viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030923160600.GA4161@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=andrea@suse.de \
    --cc=j.grootheest@euronext.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox