size freebsd kernel

size freebsd kernel

Post by Hennie.Vaatstr » Sat, 18 Nov 2000 04:00:00



Does someone know why a GENERIC is about 2,3mb in size and the kernel i
compiled myself by the handbook (only changing irq-settings for the NE2000)
is about 9,8 mb?
Even removing things that are not present (scsi's etc) doesn't help much.

Performance goes down noticeably (athl600-256mb), though still much faster
than SuSE linux on same system.

 
 
 

size freebsd kernel

Post by Jonathan McDowel » Sat, 18 Nov 2000 04:00:00



> Does someone know why a GENERIC is about 2,3mb in size and the kernel i
> compiled myself by the handbook (only changing irq-settings for the NE2000)
> is about 9,8 mb?

Sounds like you're compiling it with debug information in it.

J.

--
                 /------------------------------------\
                 |       Hell is other people.        |
                 | http://www.blackcatnetworks.co.uk/ |
                 \------------------------------------/

 
 
 

size freebsd kernel

Post by ?ystein Skundbe » Sat, 18 Nov 2000 04:00:00



> Does someone know why a GENERIC is about 2,3mb in size and the kernel i
> compiled myself by the handbook (only changing irq-settings for the NE2000)
> is about 9,8 mb?

           ^^^^^^
Whoa.
Your configfile should provide some clue.

?S
--
Thank you. I feel so much better now.


                                http://www.determinism.com

 
 
 

size freebsd kernel

Post by Donn Mille » Sat, 18 Nov 2000 04:00:00



> Does someone know why a GENERIC is about 2,3mb in size and the kernel i
> compiled myself by the handbook (only changing irq-settings for the NE2000)
> is about 9,8 mb?
> Even removing things that are not present (scsi's etc) doesn't help much.

> Performance goes down noticeably (athl600-256mb), though still much faster
> than SuSE linux on same system.

Try running strip -g /kernel.  Actually,

chflags noschg /kernel
strip -g /kernel
chflags schg /kernel

If that doesn't bring the size down, then you must have too much stuff
in your config file.  In that case, just make sure you're starting with
GENERIC and not LINT.

- Donn

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

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. How can I set up a VPN

3. not inline code in kernel (reducing kernel size)

4. Solaris 2.6 Memory and file IO

5. Freebsd 4.3 adjust receive/send buffer size how?

6. Determining free disk space within program

7. FreeBSD 2.2.6 - Can I increase my /usr partion size post install?

8. dbx info wanted

9. What is the largest file size freebsd can handle running on an Intel machine

10. FreeBSD Routing how to change buffer sizes

11. Maximum file count and file size under FreeBSD 4.3

12. HD size for FreeBSD acting as a router?

13. FAT32: size limit under FreeBSD?