LinuxQuestions.org
Review your favorite Linux distribution.
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 05-29-2012, 11:22 PM   #1
sakthi7689
LQ Newbie
 
Registered: May 2012
Posts: 8

Rep: Reputation: Disabled
reduce kernal size


how do i reduce kernel in boss linux distribution
 
Old 05-30-2012, 01:14 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you can recompile the kernel yourself and only include what you need/want at the configure stage.

I'd not heard of "boss linux" before, but a quick search shows that it is derived from Debian. So, you can follow the standard Debian procedure using make-kpkg from the kernel-package package.
See for example:
http://debian-handbook.info/browse/s...mpilation.html
and/or the documentation that comes with kernel-package.

HTH,

Evo2.
 
Old 05-30-2012, 07:28 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,688
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
The Linux kernel is not terribly 'large' to begin with ... but you can reduce the size of the thing and also improve startup time either by removing unneeded packages or by configuring the kernel to omit unnecessary modules. (For example, an early Red Hat distro had a driver for a DecSystem token-ring network card and actually tested for its presence every time you booted up.) Distros are "designed to start-up on everything, with minimal understanding from their owners," which of course is precisely what many people do want. But they can, if you so choose, be put onto a very considerable diet...
 
Old 05-30-2012, 07:39 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,151

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Why ?.

What do you expect to gain ?.
 
Old 05-30-2012, 08:00 AM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Looking at my Fedora system, and I suspect Ubuntu is similar - the kernel itself is relatively small (4.6M) compared to the standard initramfs file (14.8M). Recreating the initramfs file using only those modules required to boot my system dropped its size by about 69%. I'd go for the low-hanging fruit first.
 
Old 05-30-2012, 04:59 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,688
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
You can even eliminate the initramfs process altogether, if you put your mind to it. Determine what drivers are actually needed for your actual hardware, then construct a kernel having only those drivers ... built-in for resident devices; loadable modules for USB. "initramfs" is mostly used to fuel the dynamic device-discovery process. The question is how much do your really care.
 
Old 05-31-2012, 05:34 AM   #7
sakthi7689
LQ Newbie
 
Registered: May 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
what are the modules are not necessary in normaly . what does meant initrd?
what is the main fact initrd
 
Old 05-31-2012, 05:35 AM   #8
sakthi7689
LQ Newbie
 
Registered: May 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
what is the in difference systemcall and libraries
 
  


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
i want to reduce the size of filesystem devindrappa Linux - Mobile 1 05-31-2011 11:02 AM
How to reduce the size of wpa_suppliments? sybercop Programming 1 11-10-2007 12:39 PM
How to reduce the size of root / alexf SUSE / openSUSE 5 10-10-2005 04:53 PM
help me reduce my OS size =/ xushi Slackware 29 12-01-2004 11:45 AM
How to reduce the size of bzImage hemk76 Linux - Networking 2 10-05-2004 06:32 AM

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

All times are GMT -5. The time now is 03:46 AM.

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