Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernelgröße ? vmlinux
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Tue Jan 27, 2004 5:31 pm    Post subject: Kernelgröße ? vmlinux Reply with quote

Hi @ Alle!

Hm, mal wieder eine Frage. Und zwar geht es mir um die Größe des Kernels nach dem Kompilieren.
Beim Googeln habe ich gefunden, dass die Größe nicht mehr als ca. 2,4 MB sein soll, oder wenn man von Diskette booten will dann ebend passend auf ca. 1 MB. In der Gentoo Doku steht "2,5 MB oder 3,5 MB", je nach Architektur. Gilt das jetzt auch für Pentium IV (x86) ?

aus der Gentoo Doku:

Quote:
Wenn Sie die Konfiguration des Kernel beendet haben fahren Sie mit Kompilieren und Installieren fort. Überprüfen Sie aber nach dem kompilieren des Kernels seine Größe:

Code listing 21: Überprüfen der Kernelgröße

# ls -lh vmlinux
-rw-r--r-- 1 root root 2.4M Oct 25 14:38 vmlinux

Wenn die (unkomprimierte) Größe größer ist als 2.5MB (für Sparc32) oder 3.5MB (für Sparc64), dann konfigurieren Sie den Kernel solange erneut, bis der Kernel diese Grenzen nicht mehr überschreitet. Ein Weg dies zu erledigen ist die Kompilation der meisten Kernel Treiber als Module. Ignoriert man dies, kann es dazu führen dass der Kernel nicht bootet.


Ich kann in den Einstellungen bei "make menuconfig" Module angeben und so viel wie möglich weglassen wie ich will, kleiner als 2,8MB komme ich nicht.
Ich hab zum Test schon mal so viel wie möglich weggelassen oder als Modul eingebunden.

z.B.:
Sound --> M
Netzwerk --> M
ReiserFS --> Y
Ext3 --> Y
USB --> M
Drucker --> N

Ich würde mich über ein paar Tipps sehr freuen.
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
primat
Guru
Guru


Joined: 12 Jan 2004
Posts: 437
Location: Berlin

PostPosted: Tue Jan 27, 2004 5:47 pm    Post subject: Reply with quote

Hallo,
ich hab keine Ahnung, was Du da gemacht hast! Bei mir ist alles fest im Kernel und ich hab 1,7MB.
Hast Du wirklich nur das was Du brauchst?
Gruss
Sebo
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Tue Jan 27, 2004 6:01 pm    Post subject: Reply with quote

Hi !

primat wrote:
Hast Du wirklich nur das was Du brauchst?


Ja, echt, ich hab fast alles weggelassen, jedenfalls mal zum probieren.
Etwas dazunehmen kann ich ja immer noch, hab ich mir gedacht.

Ich bin echt alles Stück für Stück durchgegangen. ...
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
SnorreDev
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 246
Location: Valhalla

PostPosted: Tue Jan 27, 2004 9:04 pm    Post subject: Reply with quote

2.x MB? Was hast du denn da alles drin? Ich komm auf max 1.7mb und das auch erst seit dem neuen 2.6.x Kernel, weil Alsa direkt nochmal 400-500k frisst.
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Tue Jan 27, 2004 9:09 pm    Post subject: Reply with quote

Hi !

Ich hab es jetzt inzwischen auf 2.6 MB geschafft. :-) Und hab fast nichts mehr drin.
Ich krieg langsam "Grundfragen" ...
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
SnorreDev
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 246
Location: Valhalla

PostPosted: Tue Jan 27, 2004 9:19 pm    Post subject: Reply with quote

Hast du zufaellig Kernel profiling / debugging aktiviert? Diese zusaetzlichen Infos kosten auf jeden Fall nochmal space
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Tue Jan 27, 2004 9:29 pm    Post subject: Reply with quote

Hi !

Hm, ich denk mal nicht. So sieht es jedenfalls in meiner .config aus.

Code:
 
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
CONFIG_LOG_BUF_SHIFT=0

#
# Cryptographic options
#
# CONFIG_CRYPTO is not set

#
# Library routines
#
# CONFIG_CRC32 is not set
# CONFIG_ZLIB_INFLATE is not set
# CONFIG_ZLIB_DEFLATE is not set
# CONFIG_FW_LOADER is not set
# CONFIG_QSORT is not set



#
# Grsecurity
#
# CONFIG_GRKERNSEC is not set

_________________
"Ich bin ich."
Back to top
View user's profile Send private message
SnorreDev
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 246
Location: Valhalla

PostPosted: Tue Jan 27, 2004 9:35 pm    Post subject: Reply with quote

Und Profiling? Das muesste zumidest bei Kernel 2.6.2_rc2 genau drueber sein und sollte so aussehen ;)

#
# Profiling support
#
# CONFIG_PROFILING is not set

Achja ich weiss es ausm Kopf nicht, ob jetzt das bei dir ok ist - weil alles was nicht Module (M) oder (Yes) ist, ist normal auskommentiert bei mir. Aber bei dir steht 0. Logischerweise steht das eigentlich fuer No, aber sicher bin ich mir auch nicht. Hab nur noch die neuesten Development Sources drauf
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Tue Jan 27, 2004 9:44 pm    Post subject: Reply with quote

hm, sorry, hab vergessen zu sagen daß ich kernel "linux-2.4.22-gentoo-r5" habe!
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Wed Jan 28, 2004 5:58 pm    Post subject: Reply with quote

Hi!

Ich hab gerade mal geschaut.
Mein bisheriger Kernel, den ich mittels "genkernel" erstellt habe ist ja 3.1 MB gross.
Und da mache ich mir Sorgen, wenn ich meinen selbstkompilierten Kernel nur auf 2.6 MB kriege !? ;-)

Code:
-rwxr-xr-x    1 root     root         3.1M Dec 15 22:52 /usr/src/linux/vmlinux

_________________
"Ich bin ich."
Back to top
View user's profile Send private message
reptile
Guru
Guru


Joined: 19 Nov 2002
Posts: 363

PostPosted: Wed Jan 28, 2004 6:26 pm    Post subject: Reply with quote

schau dir doch mal die grösse des kernels

/usr/src/linux{-...}/arch/i386/boot/bzImage

an. das ist der gezippte. und den meint man ja auch im allgemeinen (ich zumindest). meiner (gentoo-dev-2.6.1) ist ca. 1.4 mb gross.

mfg, reptile
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Wed Jan 28, 2004 6:32 pm    Post subject: Reply with quote

Hi !

Also, laut dem Auszug aus der Doku* zur Gentoo Installation, wo ich oben in meinem ersten Posting was geschrieben habe, steht, dass man sich vmlinux anschauen soll, was die Dateigröße angeht.
*) http://www.gentoo.org/doc/de/handbook/handbook.xml?part=1&chap=7
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
awiesel
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jun 2002
Posts: 134

PostPosted: Wed Jan 28, 2004 7:07 pm    Post subject: Reply with quote

Vieleicht sollte man einmal beachten, dass diese 2.5 bzw. 3.5MB für eine Maschine mit (Ultra)Sparc(64) Prozessor gilt, sprich für Sun und Co., nicht für X86 :). Dort läuft auch der Bootvorgang etwas anders ab.
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Wed Jan 28, 2004 8:07 pm    Post subject: Reply with quote

Hi !

Deshalb hatte ich ja auch ursprünglich gefragt, wie groß der Kernel bei x86 sein darf !?
;-)
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum