LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-15-2004, 11:02 PM   #16
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15

You don't have to rebuild the kernel to bring sound in. You can load the kernel module without recompiling.
 
Old 06-16-2004, 12:14 AM   #17
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You know, I used to think it was a good idea to comment out devices when I compiled my *BSD kernels (ignoring the dire warnings from the OpenBSD FAQ), but now I don't bother any more, why?

1.) Because every time the generic kernel config files changes, you either won't get the new changes (because you're using your own custom config, based on an older version) or you'll have to do all your commenting all over again on the new config file. This takes a lot more time than you're saving by shaving off a nanosecond here and there with a smaller kernel.

2.) It doesn't noticably impact performance, only kernel size. The best improvement I got on the OpenBSD kernel (commenting out all the ISA drivers and unneeded CPU types) was roughly a 250Kb savings on the kernel size. Whooopy, 4.8MB vs. 5.0MB (or whatever it was). That's just not worth it.

3.) If anything at all is changed, the OpenBSD developers won't support it (and they're actually removing some of the options that people got into trouble with repeatedly).

4.) Some things rely on each other in unexpected ways. I tried to remove some Sys V memory stuff from my OBSD kernel, but quickly found that X windows wouldn't launch. I put it back, and X worked fine. Also, some special software relies on setting up dummy NFS mounts, so while you might not think you would need NFS server or NFS client built in the kernel, you might after all.

5.) I spoke personally to one of the OpenBSD committers (tedu@) who said the only difference is in the size of the kernel and it has no impact on performance. He runs mostly all generic kernels, except for special testing. If the committers use generic (and they know much more than I do), then it should be fine for everyone.
 
Old 06-16-2004, 12:36 AM   #18
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Commenting things out does have it's place especially if your using the new technology release of Freebsd. Removing some of the debugging and disabling agp are sometimes required to make your nvidia drivers work correctly.
 
Old 06-17-2004, 02:32 AM   #19
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Yes, but in that case it's because specific things need to be commented out in order to function on certain hardware. That's not the same as just randomly commenting out any devices you don't think you'll need.

The defaults will work in the vast majority of cases, and most people that tweak are doing so for a perceived performance boost, not because they know they need to.
 
Old 06-17-2004, 02:50 AM   #20
sporadic235
Member
 
Registered: May 2004
Location: Osaka
Distribution: FreeBSD 5.2, Mandrake 9.2
Posts: 39

Rep: Reputation: 15
i have a freebsd 5.2 running on HP nx9005. i did a cvsup of all my source trees (/usr/src and /usr/ports) all for the reason that i wanted to have a gnome 2.6 desktop.

it is prettty straightforward "tweaking" (i had to recompile my kernel 'coz i didn't have any need for the extra drivers that the generic kernel had to offer) your system and applications abound in the /usr/ports directory (although some of them are marked as broken).

i had to recompile my
 
Old 06-17-2004, 06:51 PM   #21
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
i'm just looking for a little clarity, as i posted a suggestion to recompile the kernel. after reading the entire thread again, i am a little uncertain as to my advice, so my question is, is it considered to be a "numbskull move" so to speak to get sound going by recompiling? i didn't think so since i found it in the handbook. i tried simply loading the proper modules as was suggested in a nother post in this thread, no dice. the feeling i get after reading it again is that recompiling the kernel is not really the accepted way of handling a problem. the only reason i'm concerned is i don't want to give bad advice to someone looking for help.i'm very new to *bsd, and trying to learn, any advice suggestions, clarifications, are welcome. thx for reading.
 
Old 06-17-2004, 07:55 PM   #22
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
http://www.bsdforums.org/forums/show...threadid=19095
http://www.bsdforums.org/forums/show...threadid=19093

I would do some more reading, not to go against what Chort is saying as he is very correct in you don't need to recompile the kernel with drivers omitted. But in the FreeBSD world I have read numerous times by some of the very experienced users they always recompile to take out drivers or adjust compile settings. But it isn't necessary.

If you read those 2 articles (one is for 4.*, other is 5.*.*) you will see you don't need to recompile to get sound working. You can load kernel modules that are not compiled in the kernel.

Last edited by Marble; 06-17-2004 at 07:59 PM.
 
Old 06-17-2004, 11:49 PM   #23
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Just to be clear, compiling to get sound is fine (you're adding something, not removing anything). I intensely dislike kernel modules because I think they're security risks, so I would go with the in-kernel sound driver rather than the module, but that's a personal choice.

What I'm saying you should not do is try to remove devices that you "don't need". It causes way more trouble than it's worth and it gains you NOTHING other than a slightly smaller kernel image (what difference does it make if it's 4.8MB or 5MB? None).
 
Old 06-18-2004, 06:39 AM   #24
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
http://www.bsdforums.org/forums/sho...;threadid=19095
http://www.bsdforums.org/forums/sho...;threadid=19093

I would do some more reading, not to go against what Chort is saying as he is very correct in you don't need to recompile the kernel with drivers omitted. But in the FreeBSD world I have read numerous times by some of the very experienced users they always recompile to take out drivers or adjust compile settings. But it isn't necessary.

If you read those 2 articles (one is for 4.*, other is 5.*.*) you will see you don't need to recompile to get sound working. You can load kernel modules that are not compiled in the kernel.

Last edited by Marble on 06-17-2004 at 08:59 PM
just to be clear, possibbly something was not installed, as i'm new to bsd, but trying to load modules did not work for me, maybe it's an unusual card or set up etc. the modules loaded fine, the makedev script was returning errors, in any event the recompile went fine, and i've had no problems w/sound since. thank you for the informative reading.

Quote:
Just to be clear, compiling to get sound is fine (you're adding something, not removing anything). I intensely dislike kernel modules because I think they're security risks, so I would go with the in-kernel sound driver rather than the module, but that's a personal choice.

What I'm saying you should not do is try to remove devices that you "don't need". It causes way more trouble than it's worth and it gains you NOTHING other than a slightly smaller kernel image (what difference does it make if it's 4.8MB or 5MB? None).
thx for clearing that up, as i stated before the bsd is new for me, and i don't want to give bad advice to someone else.
 
Old 06-19-2004, 01:31 PM   #25
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
I've been eyeing freebsd, for some reasons. Are u saying thers no SOUND drivers for any sound card at all. If this is true, why?
 
Old 06-19-2004, 02:05 PM   #26
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Quote:
Originally posted by RHLinuxGUY
I've been eyeing freebsd, for some reasons. Are u saying thers no SOUND drivers for any sound card at all. If this is true, why?
There is sound support.
http://www.freebsd.org/doc/en_US.ISO...und-setup.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
newbie to FreeBSD Basslord1124 *BSD 6 11-25-2005 07:23 PM
FreeBSD questions Fredstar *BSD 8 05-30-2005 06:18 PM
Newbie questions about FreeBSD and a gui jimmmac *BSD 5 08-07-2004 06:13 PM
freebsd questions Abe_the_Man *BSD 1 02-02-2004 03:25 PM
FreeBSD questions Jestrik *BSD 14 02-01-2004 04:02 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:44 PM.

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