Pagina 1 di 1
Kernel log buffer size
Inviato: mer 8 giu 2011, 16:31
da NicoMetal
Sto ricompilando il kernel e sono arrivato al punto: "Kernel log buffer size" solo che non so ne cosa sia ne che valore mettere.
Mi potete aiutare con una spiegazione?
Re: Kernel log buffer size
Inviato: mer 8 giu 2011, 17:22
da Mario Vanoni
Secondo il/lo help sono possibili 12...17, piu` grande il numero, piu` grande il buffer registrato.
Io uso da tempo 21, da una dritta della LKML, viene accettato, il 22 lo rifiuta per ora.
Sorry, non ho riferimento al post sulla LKML.
Re: Kernel log buffer size
Inviato: mer 8 giu 2011, 19:12
da robbybby
Io ho messo 16. Ho scelto un valore che mi permette di contenere tutto il log del boot.
Re: Kernel log buffer size
Inviato: gio 9 giu 2011, 13:14
da NicoMetal
si ma cosa sarebbero?
Re: Kernel log buffer size
Inviato: gio 9 giu 2011, 15:46
da Mario Vanoni
Kernel log buffer size (16 => 64KB, 17 => 128KB)
Select kernel log buffer size as a power of 2. Defaults and Examples: 17 => 128 KB for S/390 16 => 64 KB for x86 NUMAQ or IA-64 15 => 32 KB for SMP 14 => 16 KB for uniprocessor 13 => 8 KB 12 => 4 KB
Viewing log messages
The klogd program will extract messages from the kernel log buffer, and send them to the system log (which winds up in /var/log/messages on most systems). This command runs in the background on most desktop or server systems, and continually transfers messages from the kernel log buffer to the system log.
You can view the contents of the log buffer directly, using the dmesg command. Note that by default dmesg displays the messages from the buffer, but does not remove them. So this command can be run multiple times to view the kernel printk messages. See the dmesg man page for more things you can do with this tool.
Usando 21 => 2MB
Re: Kernel log buffer size
Inviato: gio 9 giu 2011, 16:33
da lablinux
In pratica รจ "per quanti" kb (o mb) aspetta prima di scrivere i log del sistema su hard disk?
Re: Kernel log buffer size
Inviato: ven 10 giu 2011, 15:24
da Mario Vanoni
Kernel log buffer size 16 => 64KB, 17 => 128KB, 21 => 2MB
La memoria riservata al log buffer dal kernel al boot.
Due macchine 4GB RAM identiche HW e SW,
una con pennina USB 32GB montata al boot via /etc/fstab,
l'altra senza.
Primo boot del giorno, subito dopo dmesg | wc
con 4140 25827 189305
senza 1056 7068 51003
Dubito che si vedano tutti i messaggi del boot nel primo caso.
Nel mio caso dmesg | less cita anche le prime righe del boot.