Re: FreeBSD beginner (NetBSD advanced)

2004-07-16 Thread Nikos Vassiliadis
I have used a single 256MB mfs on FreeBSD for months without any problem.
I was not doing heavy IO on it, it was used in a /tmp fashion and most of the
time was swapped out, going down to 8MB resident size at times.

 softdeps in NetBSD is very buggy. putting very high load like deleting
 huge tree or unpacking it easily triggers DDB with ffs_something panic :(

I have the feeling that NetBSD without softdeps performs much better than
FreeBSD. I can live without them on NetBSD.

I think you will miss ALTQ. There is a patch for FreeBSD-4.8 at Kenjiro's page.

NikV

On Friday 16 July 2004 00:50, Wojciech Puchar wrote:
  Wojciech Puchar wrote:
  i installed FreeBSD once to do quick performance tests, and at least in
  disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
 
  It's nice to be welcomed by higher performance when you switch OSes.  :-)

 while high performance is always cool, stable performance is even more
 important under load. I mean if i do 5 things it shouldn't slow down 100
 times.

 in NetBSD especially if you start large file copying whole system slows
 down terribly. not true with FreeBSD.

 softdeps in NetBSD is very buggy. putting very high load like deleting
 huge tree or unpacking it easily triggers DDB with ffs_something panic :(

  my questions:
 
  1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to
  near 20MB and never goes down? it's almost 1/4 of memory size.
 
  Cache: number of pages used for VM-level disk caching
  Buf:   number of pages used for BIO-level disk caching

 can you explain more? (or redirect me to URL about it)

 is all things double-buffered?!! it would be lots of memory traffic.


 BTW is mfs usable and stable in FreeBSD? and does it make real sense?

 in NetBSD mfs is terribly unstable. especially large mfs disks easily
 crash things.

  2) can i compile kernel with -march=pentium,pentium[234] -O2
  optimization? in NetBSD 2.0 doing -march=pentium produces kernel that
  doesn't boot at all, just resets.
 
  If you want to tune your system, tweaking the options from GENERIC by
  removing at least:
 
  cpu I386_CPU
  cpu I486_CPU

 did this.

  ...will probably result in the greatest improvement, along with disabling
  WITNESS and such if using -CURRENT.  See man tuning.

 oh - i never did it...

  Using -march=pentium is likely to be worthwhile (assuming you don't have
  a

 with heavy CPU-bound userland binaries i measured 10-25% gain.

  386 :-), higher than that may run into problems.  Higher optimizations
  than -O are not supported, although work is underway to fix the remaining
  code issues (mainly in libalias used by NAT), as I understand.
 
  If you want to try -O2, give it a shot, but you might consider using
  either -Os rather than -O2, or try -O2 -fno-strict-aliasing.

 why -Os? it makes slower but smaller code?

 will lower memory traffic/better cache hitting give more gain than it's
 lost because of slower code.

  3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
 
  i really prefer one static kernel.
 
  Read the handbook on building the kernel.

 what i missed?

 i already built a kernel, found how to disable modules but all kld stuff
 is still compiled in!

 yes i can just do rm *.ko but removing kld from kernel would be even
 nicer.

  4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6
  zone allocation soon and want to use it.
 
  IPv6 seems to work well, yes.
 
  5) what is used in FreeBSD for traffic management. NetBSD has altq -
  please just give me a name i will RTFM.
 
  If you want to use that, ipf/altq should be available in -CURRENT.
  Otherwise, ipfw  dummynet is another choice.
 
  6) how to turn using serial port as console on i386? my home machine is
  headless, i'm using X terminals to access it.
 
  See the handbook.
 
  7) does FreeBSD support 2 CPUs on i386?
 
  Sure.  See the SMP section of the kernel config file.
 
  should i go to 4.10 or better 5.2.1? stability is really important to
  me.
 
  4.10, unless there's a feature from -CURRENT that you don't want to live
  without.

 i don't think it is unless 4.10 has:

 1) multiCPU
 2) traffic shaping
 3) nat
 4) firewalling
 5) IPv6
 6) tun device

 i don't think i need anything more
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD beginner (NetBSD advanced)

2004-07-16 Thread Wojciech Puchar
I have used a single 256MB mfs on FreeBSD for months without any problem.
I was not doing heavy IO on it, it was used in a /tmp fashion and most of the
time was swapped out, going down to 8MB resident size at times.
does FreeBSD deallocate pages that are unused.
NetBSD does not. if you create 100MB file on mfs and delete it, VM size of 
mfs is still over 100MB. while it will get swapped out it's a kind of 
nonsense IMHO


softdeps in NetBSD is very buggy. putting very high load like deleting
huge tree or unpacking it easily triggers DDB with ffs_something panic :(
I have the feeling that NetBSD without softdeps performs much better than
FreeBSD. I can live without them on NetBSD.
i have too. anyway softdeps is big speedup.
i tried async and doing sync every 5 seconds. looks good.

I think you will miss ALTQ. There is a patch for FreeBSD-4.8 at Kenjiro's page.
i read manual page about ipfw yesterday. i think i will not  miss :)
NikV
On Friday 16 July 2004 00:50, Wojciech Puchar wrote:
Wojciech Puchar wrote:
i installed FreeBSD once to do quick performance tests, and at least in
disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
It's nice to be welcomed by higher performance when you switch OSes.  :-)
while high performance is always cool, stable performance is even more
important under load. I mean if i do 5 things it shouldn't slow down 100
times.
in NetBSD especially if you start large file copying whole system slows
down terribly. not true with FreeBSD.
softdeps in NetBSD is very buggy. putting very high load like deleting
huge tree or unpacking it easily triggers DDB with ffs_something panic :(
my questions:
1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to
near 20MB and never goes down? it's almost 1/4 of memory size.
Cache: number of pages used for VM-level disk caching
Buf:   number of pages used for BIO-level disk caching
can you explain more? (or redirect me to URL about it)
is all things double-buffered?!! it would be lots of memory traffic.
BTW is mfs usable and stable in FreeBSD? and does it make real sense?
in NetBSD mfs is terribly unstable. especially large mfs disks easily
crash things.
2) can i compile kernel with -march=pentium,pentium[234] -O2
optimization? in NetBSD 2.0 doing -march=pentium produces kernel that
doesn't boot at all, just resets.
If you want to tune your system, tweaking the options from GENERIC by
removing at least:
cpu I386_CPU
cpu I486_CPU
did this.
...will probably result in the greatest improvement, along with disabling
WITNESS and such if using -CURRENT.  See man tuning.
oh - i never did it...
Using -march=pentium is likely to be worthwhile (assuming you don't have
a
with heavy CPU-bound userland binaries i measured 10-25% gain.
386 :-), higher than that may run into problems.  Higher optimizations
than -O are not supported, although work is underway to fix the remaining
code issues (mainly in libalias used by NAT), as I understand.
If you want to try -O2, give it a shot, but you might consider using
either -Os rather than -O2, or try -O2 -fno-strict-aliasing.
why -Os? it makes slower but smaller code?
will lower memory traffic/better cache hitting give more gain than it's
lost because of slower code.
3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
i really prefer one static kernel.
Read the handbook on building the kernel.
what i missed?
i already built a kernel, found how to disable modules but all kld stuff
is still compiled in!
yes i can just do rm *.ko but removing kld from kernel would be even
nicer.
4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6
zone allocation soon and want to use it.
IPv6 seems to work well, yes.
5) what is used in FreeBSD for traffic management. NetBSD has altq -
please just give me a name i will RTFM.
If you want to use that, ipf/altq should be available in -CURRENT.
Otherwise, ipfw  dummynet is another choice.
6) how to turn using serial port as console on i386? my home machine is
headless, i'm using X terminals to access it.
See the handbook.
7) does FreeBSD support 2 CPUs on i386?
Sure.  See the SMP section of the kernel config file.
should i go to 4.10 or better 5.2.1? stability is really important to
me.
4.10, unless there's a feature from -CURRENT that you don't want to live
without.
i don't think it is unless 4.10 has:
1) multiCPU
2) traffic shaping
3) nat
4) firewalling
5) IPv6
6) tun device
i don't think i need anything more
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD beginner (NetBSD advanced)

2004-07-16 Thread Nikos Vassiliadis
 does FreeBSD deallocate pages that are unused.

 NetBSD does not. if you create 100MB file on mfs and delete it, VM size of
 mfs is still over 100MB. while it will get swapped out it's a kind of
 nonsense IMHO

FreeBSD tries to swap out idle pages. That means that you'll have more
physical memory available for programs, cacheing, etc. So it's nice:)
I am not by any means FreeBSD kernel expert. Not at all expert! There
is a vmm description on your new FreeBSD system by Matthew Dillon who
has made many improvments to it.
/usr/share/doc/en/articles/vm-design

Cheers, NikV

On Friday 16 July 2004 13:38, Wojciech Puchar wrote:
  I have used a single 256MB mfs on FreeBSD for months without any problem.
  I was not doing heavy IO on it, it was used in a /tmp fashion and most of
  the time was swapped out, going down to 8MB resident size at times.

 does FreeBSD deallocate pages that are unused.

 NetBSD does not. if you create 100MB file on mfs and delete it, VM size of
 mfs is still over 100MB. while it will get swapped out it's a kind of
 nonsense IMHO

  softdeps in NetBSD is very buggy. putting very high load like deleting
  huge tree or unpacking it easily triggers DDB with ffs_something panic
  :(
 
  I have the feeling that NetBSD without softdeps performs much better than
  FreeBSD. I can live without them on NetBSD.

 i have too. anyway softdeps is big speedup.

 i tried async and doing sync every 5 seconds. looks good.

  I think you will miss ALTQ. There is a patch for FreeBSD-4.8 at Kenjiro's
  page.

 i read manual page about ipfw yesterday. i think i will not  miss :)

  NikV
 
  On Friday 16 July 2004 00:50, Wojciech Puchar wrote:
  Wojciech Puchar wrote:
  i installed FreeBSD once to do quick performance tests, and at least
  in disk I/O and fair scheduling it's MUCH better (tested 4.10 and
  5.1).
 
  It's nice to be welcomed by higher performance when you switch OSes. 
  :-)
 
  while high performance is always cool, stable performance is even more
  important under load. I mean if i do 5 things it shouldn't slow down 100
  times.
 
  in NetBSD especially if you start large file copying whole system slows
  down terribly. not true with FreeBSD.
 
  softdeps in NetBSD is very buggy. putting very high load like deleting
  huge tree or unpacking it easily triggers DDB with ffs_something panic
  :(
 
  my questions:
 
  1) what is Buf and Cache in top exactly? why buf on 96MB machine gets
  to near 20MB and never goes down? it's almost 1/4 of memory size.
 
  Cache: number of pages used for VM-level disk caching
  Buf:   number of pages used for BIO-level disk caching
 
  can you explain more? (or redirect me to URL about it)
 
  is all things double-buffered?!! it would be lots of memory traffic.
 
 
  BTW is mfs usable and stable in FreeBSD? and does it make real sense?
 
  in NetBSD mfs is terribly unstable. especially large mfs disks easily
  crash things.
 
  2) can i compile kernel with -march=pentium,pentium[234] -O2
  optimization? in NetBSD 2.0 doing -march=pentium produces kernel that
  doesn't boot at all, just resets.
 
  If you want to tune your system, tweaking the options from GENERIC by
  removing at least:
 
  cpu I386_CPU
  cpu I486_CPU
 
  did this.
 
  ...will probably result in the greatest improvement, along with
  disabling WITNESS and such if using -CURRENT.  See man tuning.
 
  oh - i never did it...
 
  Using -march=pentium is likely to be worthwhile (assuming you don't
  have a
 
  with heavy CPU-bound userland binaries i measured 10-25% gain.
 
  386 :-), higher than that may run into problems.  Higher optimizations
  than -O are not supported, although work is underway to fix the
  remaining code issues (mainly in libalias used by NAT), as I
  understand.
 
  If you want to try -O2, give it a shot, but you might consider using
  either -Os rather than -O2, or try -O2 -fno-strict-aliasing.
 
  why -Os? it makes slower but smaller code?
 
  will lower memory traffic/better cache hitting give more gain than it's
  lost because of slower code.
 
  3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
 
  i really prefer one static kernel.
 
  Read the handbook on building the kernel.
 
  what i missed?
 
  i already built a kernel, found how to disable modules but all kld stuff
  is still compiled in!
 
  yes i can just do rm *.ko but removing kld from kernel would be even
  nicer.
 
  4) is IPv6 working well? (i mean no crashes etc...) i will get real
  IPv6 zone allocation soon and want to use it.
 
  IPv6 seems to work well, yes.
 
  5) what is used in FreeBSD for traffic management. NetBSD has altq -
  please just give me a name i will RTFM.
 
  If you want to use that, ipf/altq should be available in -CURRENT.
  Otherwise, ipfw  dummynet is another choice.
 
  6) how to turn using serial port as console on i386? my home machine
  is headless, i'm using X terminals to access it.
 
  See the handbook.
 
  7) does FreeBSD 

Re: FreeBSD beginner (NetBSD advanced)

2004-07-15 Thread Mike Hogsett
Wojciech Puchar wrote:
my questions:
Start here :
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD beginner (NetBSD advanced)

2004-07-15 Thread Chuck Swiger
Wojciech Puchar wrote:
i installed FreeBSD once to do quick performance tests, and at least in 
disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
It's nice to be welcomed by higher performance when you switch OSes.  :-)
my questions:
1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to 
near 20MB and never goes down? it's almost 1/4 of memory size.
Cache: number of pages used for VM-level disk caching
Buf:   number of pages used for BIO-level disk caching
2) can i compile kernel with -march=pentium,pentium[234] -O2 optimization?
in NetBSD 2.0 doing -march=pentium produces kernel that doesn't boot at 
all, just resets.
If you want to tune your system, tweaking the options from GENERIC by removing 
at least:

cpu I386_CPU
cpu I486_CPU
...will probably result in the greatest improvement, along with disabling 
WITNESS and such if using -CURRENT.  See man tuning.

Using -march=pentium is likely to be worthwhile (assuming you don't have a 386 
:-), higher than that may run into problems.  Higher optimizations than -O are 
not supported, although work is underway to fix the remaining code issues 
(mainly in libalias used by NAT), as I understand.

If you want to try -O2, give it a shot, but you might consider using either 
-Os rather than -O2, or try -O2 -fno-strict-aliasing.

3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
i really prefer one static kernel.
Read the handbook on building the kernel.
4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6 
zone allocation soon and want to use it.
IPv6 seems to work well, yes.
5) what is used in FreeBSD for traffic management. NetBSD has altq - 
please just give me a name i will RTFM.
If you want to use that, ipf/altq should be available in -CURRENT.  Otherwise, 
ipfw  dummynet is another choice.

6) how to turn using serial port as console on i386? my home machine is 
headless, i'm using X terminals to access it.
See the handbook.
7) does FreeBSD support 2 CPUs on i386?
Sure.  See the SMP section of the kernel config file.
should i go to 4.10 or better 5.2.1? stability is really important to me.
4.10, unless there's a feature from -CURRENT that you don't want to live without.
--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD beginner (NetBSD advanced)

2004-07-15 Thread Matthew Seaman
On Thu, Jul 15, 2004 at 08:30:10PM +0200, Wojciech Puchar wrote:
 i want to go to FreeBSD instead of NetBSD on my i386 machines because of 
 all new features :( introduced in NetBSD after 1.5 mostly crashing
 softdeps, strange memory/unified disk cache management (large writing to 
 file almost freezes everything) etc. etc.
 
 i installed FreeBSD once to do quick performance tests, and at least in 
 disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
 
 my questions:
 
 1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to 
 near 20MB and never goes down? it's almost 1/4 of memory size.

These are part of the kernel VM system -- most of that space is used
for buffering IO to disk drives or other devices.  There are various
VM related sysctls you can use to tune things, but unless you've got a
pretty exceptional system just going with the defaults will probably
give you the best results.

 2) can i compile kernel with -march=pentium,pentium[234] -O2 optimization?
 in NetBSD 2.0 doing -march=pentium produces kernel that doesn't boot at 
 all, just resets.

You can certainly compile with a different CPUTYPE setting in
/etc/make.conf -- works very well.

However under 4.x and any of the releases from 5.x to date you
shouldn't use any more that -O optimization.  There's a push on to
make world+kernel compile correctly using -O2 before 5.3-STABLE, but
that's not been completed yet.
 
 3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
 
 i really prefer one static kernel.

Generally what happens is that a driver is either built into a kernel
image, or it's built as a loadable module.  Writing your own kernel
configuration to include the drivers for all of your hardware isn't
too difficult.  You can prevent any LKMs being build by setting:

NO_MODULES=true

in /etc/make.conf
 
 4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6 
 zone allocation soon and want to use it.

Works for me.  But FreeBSD uses the same Kame IPv6 stack as NetBSD -- 
 
 5) what is used in FreeBSD for traffic management. NetBSD has altq - 
 please just give me a name i will RTFM.

dummynet(4)
 
 6) how to turn using serial port as console on i386? my home machine is 
 headless, i'm using X terminals to access it.

Simple.  It's pretty easy to install the system that way too:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-advanced.html

 7) does FreeBSD support 2 CPUs on i386?

Yes.  You will have to compile a custom kernel to get SMP support
under 4.x (you can always boot a UP kernel on a MP machine).  For 5.x,
it should all just work with the GENERIC kernel.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpWbhqfGEAJF.pgp
Description: PGP signature


RE: FreeBSD beginner (NetBSD advanced)

2004-07-15 Thread Eric Crist
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Wojciech Puchar
 Sent: Thursday, July 15, 2004 1:30 PM
 To: [EMAIL PROTECTED]
 Subject: FreeBSD beginner (NetBSD advanced)
[snip]
 my questions:

 1) what is Buf and Cache in top exactly? why buf on 96MB
 machine gets to
 near 20MB and never goes down? it's almost 1/4 of memory size.


Don't know.

 2) can i compile kernel with -march=pentium,pentium[234] -O2
 optimization? in NetBSD 2.0 doing -march=pentium produces
 kernel that doesn't boot at
 all, just resets.


Don't know.
 3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?

 i really prefer one static kernel.


There are many klds that are capable of being statically compiled.  I
can't say for certain that all of them are, but the one or two I've
needed are statically compiled.

 4) is IPv6 working well? (i mean no crashes etc...) i will
 get real IPv6
 zone allocation soon and want to use it.


AFAIK, it works perfectly.

 5) what is used in FreeBSD for traffic management. NetBSD has altq -
 please just give me a name i will RTFM.


Don't know off hand, I haven't had to do much of this yet.  Everything I
do is with ipfw.

 6) how to turn using serial port as console on i386? my home
 machine is
 headless, i'm using X terminals to access it.


For a headless system, create the file /boot.config and add the
following characters to it: -Dh

Then, in /etc/ttys, edit the line(s) for your appropriate serial
consoles.  Mine looks like this:
ttyd0   /usr/libexec/getty std.9600   vt100   on secure


 7) does FreeBSD support 2 CPUs on i386?


Yes, it does.  It even supports the Pentium 4 HT processors.

 sorry if too much questions at once, i would like to move my
 home machine
 to FreeBSD tomorrow, test it at real for a month and then (if
 it will be
 better than NetBSD for my needs) replace other machines.

 should i go to 4.10 or better 5.2.1? stability is really
 important to me.

If I were you, I would use 4.10.  Keep in mind, though, that the upgrade
process from 4.x to 5.x is a complete reinstall, for the most part.  I
guess there are some people that have been able to do it, but never I or
anyone I know here.  I've used 5.2.1 on my home machines, but they're
just a little too buggy for my liking.  ACPI can cause problems, and
seems to be the biggest source of bugs.  On the other hand, if you need
power management, I've never been able to get APM working in 4.x.

I hope this helps to answer some of those questions.

Eric F Crist


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD beginner (NetBSD advanced)

2004-07-15 Thread epilogue
On Thu, 15 Jul 2004 20:30:10 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

 i want to go to FreeBSD instead of NetBSD on my i386 machines because of 
 all new features :( introduced in NetBSD after 1.5 mostly crashing
 softdeps, strange memory/unified disk cache management (large writing to 
 file almost freezes everything) etc. etc.
 
 i installed FreeBSD once to do quick performance tests, and at least in 
 disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
 
 my questions:
 
 1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to 
 near 20MB and never goes down? it's almost 1/4 of memory size.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html  (point #2)

 2) can i compile kernel with -march=pentium,pentium[234] -O2
 optimization? in NetBSD 2.0 doing -march=pentium produces kernel that
 doesn't boot at all, just resets.

the following appears in /etc/make.conf:
CFLAGS controls the compiler settings used when compiling C code. Note
that optimization settings above -O (-O2, ...) are not recommended or
supported for compiling the world or the kernel

i'm working with 4.10 and have the following line in my /etc/make.conf
CPUTYPE=i686

are either of these were what you were looking for?

 3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
 
 i really prefer one static kernel.

 4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6 
 zone allocation soon and want to use it.
 
 5) what is used in FreeBSD for traffic management. NetBSD has altq - 
 please just give me a name i will RTFM.
 
 6) how to turn using serial port as console on i386? my home machine is 
 headless, i'm using X terminals to access it.

is this what you're looking for?
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

if you've got firewire, you may also want to look at man dcons.

 7) does FreeBSD support 2 CPUs on i386?

yes, though i have no experience with it.

you may care to peruse the handbook
(see link above)

or check the freebsd-questions mailing list archives
http://lists.freebsd.org/pipermail/freebsd-questions/

or google

 sorry if too much questions at once, i would like to move my home machine
 to FreeBSD tomorrow, test it at real for a month and then (if it will be 
 better than NetBSD for my needs) replace other machines.
 
 should i go to 4.10 or better 5.2.1? stability is really important to me.

i would recommend 4.10.  though the 5.x series is solid, it is undergoing
heavy development.  5.x won't be releasing a 'stable' version until
sometime later this year.

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: FreeBSD beginner (NetBSD advanced).

2004-07-15 Thread Julien Gabel
 2) can i compile kernel with -march=pentium,pentium[234] -O2
 optimization? in NetBSD 2.0 doing -march=pentium produces
 kernel that doesn't boot at all, just resets.

2.0 is always under develpoment and not yet released. I don't see the
problem with 1.6.2.

 4) is IPv6 working well? (i mean no crashes etc...) i will
 get real IPv6 zone allocation soon and want to use it.

 AFAIK, it works perfectly.

Aren't FreeBSD and NetBSD using the same IPv6 stack from the KAME project?

 5) what is used in FreeBSD for traffic management. NetBSD has altq -
 please just give me a name i will RTFM.

You can use dummynet with ipfw. Altq is being integrated in the -CURRENT
branch of FreeBSD (along with pf).

 7) does FreeBSD support 2 CPUs on i386?

 Yes, it does.  It even supports the Pentium 4 HT processors.

Yes, but there still some strange report from 'top' on MP systems as in :
 - Problem Report bin/30310 ;
 - Problem Report bin/60385.

-- 
-jpeg.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD beginner (NetBSD advanced)

2004-07-15 Thread Wojciech Puchar
Wojciech Puchar wrote:
i installed FreeBSD once to do quick performance tests, and at least in 
disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
It's nice to be welcomed by higher performance when you switch OSes.  :-)
while high performance is always cool, stable performance is even more 
important under load. I mean if i do 5 things it shouldn't slow down 100 
times.

in NetBSD especially if you start large file copying whole system slows 
down terribly. not true with FreeBSD.

softdeps in NetBSD is very buggy. putting very high load like deleting 
huge tree or unpacking it easily triggers DDB with ffs_something panic :(

my questions:
1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to 
near 20MB and never goes down? it's almost 1/4 of memory size.
Cache: number of pages used for VM-level disk caching
Buf:   number of pages used for BIO-level disk caching
can you explain more? (or redirect me to URL about it)
is all things double-buffered?!! it would be lots of memory traffic.
BTW is mfs usable and stable in FreeBSD? and does it make real sense?
in NetBSD mfs is terribly unstable. especially large mfs disks easily 
crash things.


2) can i compile kernel with -march=pentium,pentium[234] -O2 optimization?
in NetBSD 2.0 doing -march=pentium produces kernel that doesn't boot at 
all, just resets.
If you want to tune your system, tweaking the options from GENERIC by 
removing at least:

cpu I386_CPU
cpu I486_CPU
did this.
...will probably result in the greatest improvement, along with disabling 
WITNESS and such if using -CURRENT.  See man tuning.
oh - i never did it...
Using -march=pentium is likely to be worthwhile (assuming you don't have a
with heavy CPU-bound userland binaries i measured 10-25% gain.

386 :-), higher than that may run into problems.  Higher optimizations than 
-O are not supported, although work is underway to fix the remaining code 
issues (mainly in libalias used by NAT), as I understand.

If you want to try -O2, give it a shot, but you might consider using either 
-Os rather than -O2, or try -O2 -fno-strict-aliasing.

why -Os? it makes slower but smaller code?
will lower memory traffic/better cache hitting give more gain than it's 
lost because of slower code.


3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
i really prefer one static kernel.
Read the handbook on building the kernel.
what i missed?
i already built a kernel, found how to disable modules but all kld stuff 
is still compiled in!

yes i can just do rm *.ko but removing kld from kernel would be even 
nicer.


4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6 
zone allocation soon and want to use it.
IPv6 seems to work well, yes.
5) what is used in FreeBSD for traffic management. NetBSD has altq - 
please just give me a name i will RTFM.
If you want to use that, ipf/altq should be available in -CURRENT. 
Otherwise, ipfw  dummynet is another choice.

6) how to turn using serial port as console on i386? my home machine is 
headless, i'm using X terminals to access it.
See the handbook.
7) does FreeBSD support 2 CPUs on i386?
Sure.  See the SMP section of the kernel config file.
should i go to 4.10 or better 5.2.1? stability is really important to me.
4.10, unless there's a feature from -CURRENT that you don't want to live 
without.
i don't think it is unless 4.10 has:
1) multiCPU
2) traffic shaping
3) nat
4) firewalling
5) IPv6
6) tun device
i don't think i need anything more
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]