LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-05-2012, 10:02 AM   #1
Lucere
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 1
How Large is the Linux Kernel Binary


How large is the Linux Kernel Binary for each of the different systems it employs: Desktop, server, etc?

Thanks!
 
Old 10-05-2012, 10:07 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The Linux kernel does not care at all if you run a server or a desktop. These differences are determined by the installed userspace software, not the kernel.
The size of the kernel itself is dependent on which subsystems and drivers you compile in and which optimizations are used. It will also change the size if you use an embedded filesystem.
In short, this question is unanswerable.
 
1 members found this post helpful.
Old 10-05-2012, 10:16 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It depends entirely on how you configure it. As an example Slackware 14.0 kernels:

These kernels have nearly everything bulit-in:
64-bit huge install kernel is 6048 KB
32-bit huge install kernel is 5668 KB

These kernels have mostly modules:
64-bit generic kernel is 3080 KB
64-bit generic kernel is 2785 KB
64-bit custom kernel is 2290 KB

Whether the kernel was built for a server or desktop is not relevant. More relevant would be:
Code:
  ┌─────────────────────────── Optimize for size ───────────────────────────┐
  │ CONFIG_CC_OPTIMIZE_FOR_SIZE:                                            │  
  │                                                                         │  
  │ Enabling this option will pass "-Os" instead of "-O2" to gcc            │  
  │ resulting in a smaller kernel.                                          │  
  │                                                                         │  
  │ If unsure, say Y.                                                       │  
  │                                                                         │  
  │ Symbol: CC_OPTIMIZE_FOR_SIZE [=n]                                       │  
  │ Type  : boolean                                                         │  
  │ Prompt: Optimize for size                                               │  
  │   Defined at init/Kconfig:942                                           │  
  │   Location:                                                             │  
  │     -> General setup                                                    │
 
1 members found this post helpful.
Old 10-07-2012, 09:52 AM   #4
Rupadhya
Member
 
Registered: Sep 2012
Location: Hoffman Estates, IL
Distribution: Fedora 20
Posts: 167

Rep: Reputation: Disabled
My kernels are...
Quote:
-rwxr-xr-x. 1 root root 4611776 May 7 12:51 vmlinuz-3.3.4-5.fc17.i686
-rwxr-xr-x. 1 root root 4405088 Oct 2 14:10 vmlinuz-3.6.0
They are pretty vanilla kernels for a 32-bit system. I use Fedora 17, and the 3.6.0 is compiled from source from www.kernel.org.

- Raj
 
Old 10-09-2012, 10:27 AM   #5
Lucere
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 1
Thx H_TexMex_H and Raj!

Thx H_TexMex_H and Raj!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux utility to combine two or more binary files into a single binary file mageshvan Programming 7 05-05-2011 08:06 AM
Slackware binary repository I can upload large packages to? shadowsnipes Slackware 21 12-12-2007 05:02 AM
LXer: Why Binary-Only Linux Kernel Modules are Illegal LXer Syndicated Linux News 4 08-08-2006 09:29 AM
linux kernel: large routing tables dunkyb Linux - Software 0 02-19-2003 02:19 AM
Cannot ftp large binary files to SuSE 7.1 box dxterra Linux - Networking 2 03-06-2001 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration