public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] init: Shrink early messages to prevent overflowing the kernel log buffer
@ 2011-02-19  2:47 Mike Travis
  2011-02-19  2:47 ` [PATCH 1/6] ACPI: Minimize X2APIC initial messages Mike Travis
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Mike Travis @ 2011-02-19  2:47 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Jack Steiner, Robin Holt, Len Brown, Thomas Gleixner,
	H. Peter Anvin, Andrew Morton, Yinghai Lu, linux-acpi, x86,
	linux-kernel


v2: updated to apply to x86-tip

On larger systems, information in the kernel log is lost because
there is so much early text printed, that it overflows the static
log buffer before the log_buf_len kernel parameter can be processed,
and a bigger log buffer allocated.

Distros are relunctant to increase memory usage by increasing the
size of the static log buffer, so minimize the problem by allocating
the new log buffer as early as possible, and reducing the amount
of characters those early messages generate.

Some stats from testing these changes on our current lab UV systems.
(Both of these systems lost all of the e820 and EFI memmap ranges
before the changes.)

System X:
	8,793,945,145,344 bytes of system memory
	256 nodes
	599 EFI Mem ranges
	4096 cpu_ids
	43% of static log buffer unused

System Y:
	11,779,115,188,224 bytes of system memory
	492 Nodes
	976 EFI Mem ranges
	1968 cpu_ids
	17% of static log buffer unused

The last stat is how close the static log buffer came
to overflowing.  While these resources are fairly close
to today's max limits, there is not a lot of head room
for growth.

An alternative for the future might be to create a larger
static log buffer in the __initdata section, and then
always allocate a dynamically sized log buffer to replace
it.  This would also allow shrinking the log buffer for
memory tight situations.  But it would add complexity to
the code.

-- 

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-02-24  4:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-19  2:47 [PATCH 0/6] init: Shrink early messages to prevent overflowing the kernel log buffer Mike Travis
2011-02-19  2:47 ` [PATCH 1/6] ACPI: Minimize X2APIC initial messages Mike Travis
2011-02-20  1:50   ` David Rientjes
2011-02-21 20:42     ` Mike Travis
2011-02-22  0:13       ` David Rientjes
2011-02-19  2:47 ` [PATCH 2/6] x86: Minimize initial e820 messages Mike Travis
2011-02-20  1:51   ` David Rientjes
2011-02-21 20:50     ` Mike Travis
2011-02-22  0:13       ` David Rientjes
2011-02-22 18:43   ` Bjorn Helgaas
2011-02-19  2:47 ` [PATCH 3/6] x86: Minimize SRAT messages Mike Travis
2011-02-20  1:51   ` David Rientjes
2011-02-23 21:24     ` Mike Travis
2011-02-24  4:12       ` David Rientjes
2011-02-19  2:47 ` [PATCH 4/6] printk: Break out printk_time Mike Travis
2011-02-20  1:51   ` David Rientjes
2011-02-19  2:47 ` [PATCH 5/6] printk: Minimize time zero output Mike Travis
2011-02-20  1:51   ` David Rientjes
2011-02-21 20:56     ` Mike Travis
2011-02-22  0:13       ` David Rientjes
2011-02-19  2:47 ` [PATCH 6/6] printk: Allocate kernel log buffer earlier Mike Travis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox