Re: syscons options and memory use
On Thu, 2005-Mar-31 09:53:59 +0200, Ronald Klop wrote: >>In the last episode (Mar 31), Ronald Klop said: >>>The syscons manual page says: >>>"The following options will remove some features from the syscons >>> driver and save kernel memory. >>> [...] >>> SC_NO_SYSMOUSE >>>This option removes mouse support in the syscons driver. >>>The mouse daemon moused(8) will fail if this option is >>>defined. This option implies the SC_NO_CUTPASTE option >>>too. >>>" >>> >>>How much memory does this save (or how can I discover that)? Is it worth >>>it on a 96MB PentiumII laptop? It basically removes scmouse.c, sysmouse.c and a largish chunk of code in scvgarndr.c - my estimate is about 9KB. You can probably do better looking elsewhere. For loadable devices, looking at the module size is a good guideline. >How can I see the size of my kernel? server% size /boot/kernel/kernel textdata bss dec hex filename 3045945 229911 978784 4254640 40ebb0 /boot/kernel/kernel server% Remember that this doesn't include dynamic memory allocated by the kernel which can be quite significant. Look at the "real memory" and "avail memory" lines in your boot dmesg to get a better idea of the basic kernel memory requirements. -- Peter Jeremy ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: syscons options and memory use
In the last episode (Mar 31), Ronald Klop said: > On Thu, 31 Mar 2005 01:04:10 -0600, Dan Nelson <[EMAIL PROTECTED]> > wrote: > >In the last episode (Mar 31), Ronald Klop said: > >>The syscons manual page says: > >>"The following options will remove some features from the syscons > >> driver and save kernel memory. > >> [...] > >> SC_NO_SYSMOUSE > >>This option removes mouse support in the syscons driver. > >>The mouse daemon moused(8) will fail if this option is > >>defined. This option implies the SC_NO_CUTPASTE option > >>too. > >>" > >> > >>How much memory does this save (or how can I discover that)? Is it worth > >>it on a 96MB PentiumII laptop? > > > >I would guess that the memory savings is probably on the order of > >kilobytes. Useful if you're trying to prevent excessive swapping on an > >8MB system. Not worth disabling on your system. > > How can I see the size of my kernel? > I know vmstat -m and netstat -m, but from that info I don't see if I > reduced the memory footprint after disabling an option or device. For the kernel size itself, just "ls -l /boot/kernel/kernel" :) A more interesting number might be the output of "sysctl hw.usermem", which I believe is the amount of memory available to user processes. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: syscons options and memory use
On Thu, 31 Mar 2005 01:04:10 -0600, Dan Nelson <[EMAIL PROTECTED]> wrote: In the last episode (Mar 31), Ronald Klop said: The syscons manual page says: "The following options will remove some features from the syscons driver and save kernel memory. [...] SC_NO_SYSMOUSE This option removes mouse support in the syscons driver. The mouse daemon moused(8) will fail if this option is defined. This option implies the SC_NO_CUTPASTE option too. " How much memory does this save (or how can I discover that)? Is it worth it on a 96MB PentiumII laptop? I would guess that the memory savings is probably on the order of kilobytes. Useful if you're trying to prevent excessive swapping on an 8MB system. Not worth disabling on your system. How can I see the size of my kernel? I know vmstat -m and netstat -m, but from that info I don't see if I reduced the memory footprint after disabling an option or device. -- Ronald Klop, Amsterdam, The Netherlands ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: syscons options and memory use
In the last episode (Mar 31), Ronald Klop said: > The syscons manual page says: > "The following options will remove some features from the syscons > driver and save kernel memory. > [...] > SC_NO_SYSMOUSE > This option removes mouse support in the syscons driver. > The mouse daemon moused(8) will fail if this option is > defined. This option implies the SC_NO_CUTPASTE option > too. > " > > How much memory does this save (or how can I discover that)? Is it worth > it on a 96MB PentiumII laptop? I would guess that the memory savings is probably on the order of kilobytes. Useful if you're trying to prevent excessive swapping on an 8MB system. Not worth disabling on your system. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
syscons options and memory use
Hello, The syscons manual page says: "The following options will remove some features from the syscons driver and save kernel memory. [...] SC_NO_SYSMOUSE This option removes mouse support in the syscons driver. The mouse daemon moused(8) will fail if this option is defined. This option implies the SC_NO_CUTPASTE option too. " How much memory does this save (or how can I discover that)? Is it worth it on a 96MB PentiumII laptop? Thanks in advance, Ronald. -- Ronald Klop, Amsterdam, The Netherlands ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"