Dear all
Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
Thanks a lot
Alan PO
Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
Thanks a lot
Alan PO
> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
> Thanks a lot
> Alan PO
> Dear all
> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
> Thanks a lot
> Alan PO
It is between 20 and 30 meg to download.
It extracts to a very large source tree, over 100 meg.
When building, the object files take a lot of space.
A bootable kernel file can be less than a 1meg. A full blown working kernel
with all the modules compiled, can be about 15-20 meg in the
/lib/modules/2.4.xxx.
--
I'm not offering myself as an example; every life evolves by its own laws.
------------------------
http://www.mohawksoft.com
> Dear all
> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
Size of the source tarball?
Check www.kernel.org, which size the latest source tarball has.
Size of a compiled kernel?
Depends on your setup/module use, I would suggest compiling one and check.
You may want to read the Kernel-HowTo available on www.linuxdoc.org.
Michael Heiming
> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
Compressed, about 20 MBytes.
Kernel binary on my machines runs about 600kbytes.
--
Dave Blake
>> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
>Kernel source, about 100 MBytes.
>Compressed, about 20 MBytes.
>Kernel binary on my machines runs about 600kbytes.
> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
-rw-r--r-- 1 root root 661329 Mar 26 12:57 vmlinuz
However dmesg tells me the kernel occupies 878k of RAM -
Then there is the cumulative memory usage of the kernel modules -
# lsmod
Module Size Used by
sr_mod 12448 0 (autoclean)
cdrom 27008 0 (autoclean) [sr_mod]
isofs 18528 0 (autoclean)
iptable_filter 1824 0 (autoclean) (unused)
ip_nat_ftp 3280 0 (unused)
iptable_nat 13376 1 [ip_nat_ftp]
ip_conntrack_ftp 2016 0 (unused)
ip_conntrack 13440 2 [ip_nat_ftp iptable_nat
ip_conntrack_ftp]
ip_tables 10784 4 [iptable_filter iptable_nat]
scanner 6560 0 (unused)
tdfx 53328 1
ide-scsi 8080 0
scsi_mod 92720 2 [sr_mod ide-scsi]
autofs 10752 1 (autoclean)
eepro100 17072 2 (autoclean)
emu10k1 44880 0
mousedev 4160 0 (unused)
hid 12352 0 (unused)
input 3392 0 [mousedev hid]
usb-ohci 15472 0 (unused)
usbcore 51536 1 [scanner hid usb-ohci]
The compressed archive is just over 20 MB:
-rw-rw-r-- 1 root root 20499361 Feb 21 17:00
linux-2.4.2.tar.bz2
However the directory it creates when uncompressed is much larger:
# du -sk linux
133632 linux
So the answer could be anywhere from 600k to 130 MB depending
on what you mean by "Linux" -
cu
Jup
>> Dear all
>> Would you tell me the size of Linux 2.4.1 kernel? Is it very large?
>The compressed image is just over 600k -
>-rw-r--r-- 1 root root 661329 Mar 26 12:57 vmlinuz
-rw-r--r-- 1 root root 1016180 Mar 21 17:26 vmlinuz-2.4.3pre6
You obviously have a lot more code farmed out to modules than I do.
I use modules for sound, etc. but I like to keep my network card,
scsi drivers in the kernel itself.
:The compressed file is about 20 Mb. Once uncompressed, it can grow up to
:100 Mb.
ROFL, Free Agent hadn't downloaded the body of this message when I
first read it, do all I saw was this:
|Re: What is the size of Linux 2.4.1 Kernel
|
| [13 lines]
|
| [Press M to mark this message for later retrieval.]
A 13 line Kernel... he he.
>:The compressed file is about 20 Mb. Once uncompressed, it can grow up to
>:100 Mb.
>ROFL, Free Agent hadn't downloaded the body of this message when I
>first read it, do all I saw was this:
>|Re: What is the size of Linux 2.4.1 Kernel
>|
>| [13 lines]
>|
>| [Press M to mark this message for later retrieval.]
>A 13 line Kernel... he he.
Cheers & God bless
SammyTheSnake
--
Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
Wheels: bike, 'ickle bike, and unicycle. | /o \/
1. Allow for profile_buf size = kernel text size
Hi
The following patch enables the kernel profiler to set up profiling
buffer equal to the kernel text size. It is particularly useful
while doing insn level profiling on archs with variable sized instructions.
There is a better possiblity of ticks being attributed to the right
instructions if the profiling granularity is better. Patch applies neatly on
2.5.43 and 2.5.43-mm2. Tested well on PIII 4way. Please apply.
-Kiran
diff -X dontdiff -ruN linux-2.5.43/fs/proc/proc_misc.c readprofile-2.5.43/fs/proc/proc_misc.c
--- linux-2.5.43/fs/proc/proc_misc.c Wed Oct 16 08:57:18 2002
proc_root_kcore->size =
(size_t)high_memory - PAGE_OFFSET + PAGE_SIZE;
}
- if (prof_shift) {
+ if (prof_on) {
entry = create_proc_entry("profile", S_IWUSR | S_IRUGO, NULL);
if (entry) {
entry->proc_fops = &proc_profile_operations;
diff -X dontdiff -ruN linux-2.5.43/include/linux/profile.h readprofile-2.5.43/include/linux/profile.h
--- linux-2.5.43/include/linux/profile.h Wed Oct 16 08:58:20 2002
extern unsigned int * prof_buffer;
extern unsigned long prof_len;
extern unsigned long prof_shift;
+extern int prof_on;
enum profile_type {
diff -X dontdiff -ruN linux-2.5.43/kernel/profile.c readprofile-2.5.43/kernel/profile.c
--- linux-2.5.43/kernel/profile.c Wed Oct 16 08:59:04 2002
unsigned int * prof_buffer;
unsigned long prof_len;
unsigned long prof_shift;
+int prof_on;
int __init profile_setup(char * str)
{
int par;
- if (get_option(&str,&par))
+ if (get_option(&str,&par)) {
prof_shift = par;
+ prof_on = 1;
+ }
return 1;
}
{
unsigned int size;
- if (!prof_shift)
+ if (!prof_on)
return;
/* only text is profiled */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
2. What daemon did they substitute for /usr/lib/lpd ?
3. Problem with networking - I am using RedHat 9 Linux kernel 2.4
5. proposal: feed smaller mailing lists into linux-kernel, add linux-kernel-core and linux-kernel-bugs
6. Why not build in cgiwrap into httpd?
7. Is there am MAXIMUM size for etc/host names
8. gtkmm vs. Qt
9. not inline code in kernel (reducing kernel size)
10. Linux Kernel Size, POSIX, Embedded
11. SCO versus Linux kernel size
12. Linux Schedular Latency and Kernel Memory Size < 1MB ?
13. File size problem, what is the biggest size of a Linux file?