How to build lint libraries, e.g. llib-lc.ln?
Hi folks, when writing C applications I'd like to check them using lint. Unfortunately FreeBSD comes with only "llib-lposix.ln" and "llib-lstdc.ln" in "/usr/libdata/lint". Is there an easy, i.e. automated, way to create lint libraries (e.g. llib-lc.ln) for all the libs in "/usr/src/lib"? Cheers, Alexander Mueller ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 5.2.1: Mutex/Spinlock starvation?
Hi Alexander, > I can't say anything as how the issue can be connected with the > mutexes and so on, but to solve your problem with apache, I'd look > into 'hold_off_on_exponential_spawning' and 'MAX_SPAWN_RATE' > parameters in src/main/http_main.c of the apache source tree > (presuming you're using apache 1.3.*), and I'm sure some similar > options can be found for apache > 2.0. What you need is to make apache forking rate more slower, so the > server will not suffer from a sudden load peak. That was my first thought exactly! I halved the MAX_SPAWN_RATE to 16 (from 32) and then *exactly* the same thing happened; it only took a minute longer to happen If i recall correctly (not sure anymore since it was middle of the night) other processes also got blocked (hence i couldnt use keyboard anymore). That was why i figured it was some kind of lock/block/mutex/whatever inside the kernel Best Regards, Ali Niknam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [HEADS-UP] mbuma is in the tree
On Friday 04 June 2004 04:27 am, Gleb Smirnoff wrote: > On Thu, Jun 03, 2004 at 08:19:11AM -0700, Brooks Davis wrote: > B> > On Wed, Jun 02, 2004 at 10:56:52AM -0700, Sam Leffler wrote: > B> > S> allocated using this mechanism. I did it once for vlan tags but > botched it B> > S> (didn't handle module references properly) so backed it. > But there's no B> > S> reason someone cannot redo it or convert other > heavily used fixed size tags B> > S> to use a zone. > B> > > B> > Have you saved your efforts? May I look at them? > B> > B> They are in the CVS history of sys/net/if_vlan.c. > > I see now, thanks. > > Question to Sam: have you performed any tests? Is this definitely > true, that UMAllocing in special zone is faster than general malloc()? Allocating from a zone was noticeable for gige interfaces, especially on my SMP configuration (which was running w/o Giant). For non-gige interfaces the overhead of using malloc is not noticeable (as I reported when I first converted vlan handling over to use tags). Regardless the point was that you can already use a zone for tags if you want. Sam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 5.2.1: Mutex/Spinlock starvation?
> Welcome :-). > Thank you :) > Actually, by default, most mutexes in the system are sleep mutexes, so > they sleep on contention rather than spinning. In some cases, this > actually hurts more than spinning, because if the mutex is released > quickly by the holder, then you pay the context switches which cost > more than spinning for the short period of time. > > You might want to try adding "options ADAPTIVE_MUTEXES" to your kernel > configuration, which will cause mutexes to spin briefly on SMP systems > before sleeping, and has been observed to improve performance quite a > bit. > Interesting; could switching to SCHED_ULE help as well ? Since afaik the processes get re-scheduled? Also could this be the reason that system gets to use so much cpu (like 70% of overal cpu)? That it needs to reschedule ~1000 processes continuesly ? > If you have a lower tolerance for instability, there are a number of > minor performance tweaks that can be easily back-ported to 5.2.1, > such as the change to proc.h to make grabbing and releasing the proc > lock conditional on p_stops having events defined. This removes > several mutex operations from each system call, and I've observed the > difference in a pretty measurable way on micro-benchmarks. It's also > pretty low risk. The change is src/sys/sys/proc.h:1.366. There are > some other related changes that can probably be dug up, including > changes to improve the performance of the scheduler in the presence > of threads, etc. if all else fails i'll start doing this, thanks for the suggestion! -- Ali Niknam <[EMAIL PROTECTED]> | tel 0182-504424 | fax 0182-504460 Transip B.V. | http://www.transip.nl/ | Mensen met verstand van zaken. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
patch to add additional devices to uftdi(4)
I couldn't find a maintainer for uftdi(4), so I sent the patch in as a PR. It is available here: http://www.freebsd.org/cgi/query-pr.cgi?pr=67357 It adds support for the Intrepid Control Systems USB based vehicle bus interfaces. Earlier, I submited a PR that contains a patch that should be ignored (a subset of the later patch), but also a bug that results in a system panic. A USB and/or uftdi person might want to take a look at it: http://www.freebsd.org/cgi/query-pr.cgi?pr=67301 mike ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Network config on FreeBSD 5.1 - Help!
As what have been pointed out, It may help if you comment out the lines in rc.conf as below: #ifconfig_vr0="inet6 hex address netmask 255.255.255.0" ipv6_enable="NO" #hostname= "..." #ppp_enable="YES" #ppp_mode="ddial" #ppp_nat="YES" #ppp_profile="bellnet.ca" sendmail_enable="YES" gateway_enable="YES" rpc_statd_enable="YES" tcp_extensions="YES" hostname="..." ifconfig_vr0="DHCP" Since your modem is taking care of the PPPoE stuff, you don't need "ppp" on your freebsd. Comment them out. Now as root, you can do the following: # /stand/sysinstall Then choose menu: "Configure" => "Networking" => "Interfaces" => "vr0". Then select: "No" for IPV6 if you don't want IPV6; "Yes" for DHCP; "hostname.yourdomain.com" for host; "yourdomain.com" for domain; Upto this point, if your DHCP server (should be on the DSL modem which usually is bundled with a router) is working, you should have seen other information like "Gateway", "name server", "IPV4 address" and "netmask" shown on the screen. Simply press "OK". If no error message seen, your network MUST work now. You dont' even need to input the IP address, netmask, DNS server blah blah... The DHCP server will populate you with such information. To find out whether your DHCP server is on, get the IP addresses of your two XP machines by running "ipconfig" on a DoS prompt, which will tell you the IP address and gateway IP (also the DHCP server IP). The IP addresses of your two XPs should have the same subnet. i.e., the first two or three bytes are often the same (like 192.168.0.x). Last, make sure your Ethernet cable is not broken and your modem and hub are powered on when you'r configuring. Check whether the lights on both the hub and freebsd machine is on. A reboot often helps too. Wish it helps. --- aussie gal wrote: > This is the set-up: > > I have a High-Speed Internet connection. What you > would call a DSL modem connection. I have the main > modem connection hooked up to a 4-port hub. Two > ports are connected to WinXP boxes and the third one > is connected to my freebsd box into the ethernet > port supplied by the Asus motherboard (it has a > build-in RJ port). I have the other two XP boxes up > and running but my freebsd box is (as you can see) > struggling. > > Longterm prospects: > > 1) After I can get freebsd networked, I would like > to eventually install some security and then take > over the world with a cluster of boxes designed by > top secret software. > > 2) Just kidding. I want to set up a s mall > network of computers running off of this freebsd > server, a mail server, and a half decent web server > with Perl/php/etc and maybe some other cook bells > and whistles. But yes, I will probably want some > security via a firewall at some point as well. > Maybe sooner rather than later. But I first need to > pick-up the networking fundementals > > Btw, In the initial Sysinstall > Network > configuation dialogs I specified that I did not want > Ipv6 and that I wanted dchp. > > For the "network configuration" screen i filled in > the following: > Host: host.name.com > domain: name.com > ipv4 gateway: blank > Name server: this is my isp's dns server's ip > address > > and for the "Configuration for Interface vr0" dialog > I write: > ipv4 address: Blank > Netmask: 255.255.255.0 < ;- I just changed this to > 255.255.0.0 as per your suggestion > extra options: blank > > I hope this helps. Any thoughts on how to help me > find my IP address? > > Thanks for your suggestion. > > Regards, > Nav > zera holladay wrote: > How do you connect (or want to connect) to your > network or to the internet? Do you have your own > private network and you connect through a gateway or > router, or do you have a DSL modem attached directly > to your ethernet card? You are not getting an IP > address and your netmask is for a very, very large > network. Networking is like cooking -- you have to > first decide what you want to cook with the > ingredients you have, then you have to get a recipe > and follow it. > > -zh > > > --- aussie gal wrote: > > Yeah - I have read it. > > > > when I do the ifconfig i get: > > vr0: flags=8843> MULTICAST> mtu 1500 > > inet6 fe80::20e:a6ff:..[hexidecimal ipv6 > > address]%vr0 prefixlen 64 scopid 0x1 > > inet 0.0.0.0 netmask 0xff000 broadcast > > 255.255.255.255 > > ether 00:0e:a6:.. [hexidecimal ipv4 address] > > media: Ethernet autoselect (10baseT/UTP) > > status: active > > > > The one thing that I noticed was that the example > on > > the website has all the addresses in > > non-hexcedecimal format and my output has them all > > in hex ip
Re: general Darwin imports (was Re: Darwin cmd import?)
On Wed, Jun 02, 2004 at 09:57:57AM -0400, Michael W. Lucas wrote: > People may gripe about Apple not returning stuff to the open source > community. The truth is, they have. They aren't responsible for > converting what they return into a format we can use, but they haven't > deliberately obfuscated their code. Sorting out the diffs would be a > pain, but not horribly difficult. > > According to Jordan Hubbard, the best source of low-hanging fruit is > their modified libc. They've had people work out all sorts of bugs, > clean up functions, performance improvements, etc. Libc changes > require extensive testing. They also have wide-reaching benefits. > It's still BSDL'd, so we can take back whatever we want. Now the question of course is: where can I find it? It is somewhere in a CVS repository (that would be nicest), or are it raw sourcefiles only? Edwin, now owning a Mac so not really familiar with things -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://weblog.barnet.com.au/edwin/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: general Darwin imports (was Re: Darwin cmd import?)
On Sat, Jun 05, 2004 at 09:59:15PM +1000, Edwin Groothuis wrote: > On Wed, Jun 02, 2004 at 09:57:57AM -0400, Michael W. Lucas wrote: > > People may gripe about Apple not returning stuff to the open source > > community. The truth is, they have. They aren't responsible for > > converting what they return into a format we can use, but they haven't > > deliberately obfuscated their code. Sorting out the diffs would be a > > pain, but not horribly difficult. > > > > According to Jordan Hubbard, the best source of low-hanging fruit is > > their modified libc. They've had people work out all sorts of bugs, > > clean up functions, performance improvements, etc. Libc changes > > require extensive testing. They also have wide-reaching benefits. > > It's still BSDL'd, so we can take back whatever we want. > > Now the question of course is: where can I find it? It is somewhere > in a CVS repository (that would be nicest), or are it raw sourcefiles > only? The URL of the source was referenced earlier in this thread, IIRC. > Edwin, now owning a Mac so not really familiar with things Neither am I. You might check out the opendarwin.org web site and see what they have to say on the issue. I suspect if you asked on their mailing list and said you wanted to start bringing stuff back to FreeBSD, they'd be happy to give you all the pointers you need. ==ml -- Michael Lucas [EMAIL PROTECTED], [EMAIL PROTECTED] "I'm sorry, but 'Social Darwinism' is no excuse for killing all of your co-workers." -- Ivan Brunetti http://www.BlackHelicopters.org/~mwlucas/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Orinoco Gold and Linksys AP
In message: <[EMAIL PROTECTED]> "Liam J. Foy" <[EMAIL PROTECTED]> writes: : Hey guys, : : I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: : : wi0: flags=8843 mtu 1500 : inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 : inet 192.168.0.20 netmask 0xff00 broadcast 255.255.255.0 : ether 00:02:2d:c0:2a:58 : media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) : status: associated : ssid Anduril 1:Anduril : stationname "FreeBSD WaveLAN/IEEE node" : channel 3 authmode OPEN powersavemode OFF powersavesleep 100 : rtsthreshold 2312 protmode CTS : wepmode OFF weptxkey 1 : : The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. : : Any hints or ideas are greatly thanked, Does the owi driver work for you where the wi driver fails? Warner ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Orinoco Gold and Linksys AP
In message: <[EMAIL PROTECTED]> Søren Schmidt <[EMAIL PROTECTED]> writes: : Liam J. Foy wrote: : > Hey guys, : > : > I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: : > : > wi0: flags=8843 mtu 1500 : > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 : > inet 192.168.0.20 netmask 0xff00 broadcast 255.255.255.0 : > ether 00:02:2d:c0:2a:58 : > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) : > status: associated : > ssid Anduril 1:Anduril : > stationname "FreeBSD WaveLAN/IEEE node" : > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 : > rtsthreshold 2312 protmode CTS : > wepmode OFF weptxkey 1 : > : > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. : > : > Any hints or ideas are greatly thanked, : : My orinoco's hasn't worked since the if_wi driver was redone over a year : ago (yeah time flies. You might have better luck with if_owi though, but : it didn't help mine either. What firmware level do you have? Both wi and owi works for all my lucent/wavelan/orinoco cards. :-( Warner ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Orinoco Gold and Linksys AP
On Sat, 05 Jun 2004 12:37:28 -0600 (MDT) "M. Warner Losh" <[EMAIL PROTECTED]> wrote: > In message: <[EMAIL PROTECTED]> > Søren Schmidt <[EMAIL PROTECTED]> writes: > : Liam J. Foy wrote: > : > Hey guys, > : > > : > I have also emailed this to freebsd-mobile@, so just writing to see if any of > you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. > They seem to both work fine in windows, just unable to ping each other in freebsd. > Here is the output of ifconfig wi0: > : > > : > wi0: flags=8843 mtu 1500 > : > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 > : > inet 192.168.0.20 netmask 0xff00 broadcast 255.255.255.0 > : > ether 00:02:2d:c0:2a:58 > : > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > : > status: associated > : > ssid Anduril 1:Anduril > : > stationname "FreeBSD WaveLAN/IEEE node" > : > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 > : > rtsthreshold 2312 protmode CTS > : > wepmode OFF weptxkey 1 > : > > : > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled > also on the AP. > : > > : > Any hints or ideas are greatly thanked, > : > : My orinoco's hasn't worked since the if_wi driver was redone over a year > : ago (yeah time flies. You might have better luck with if_owi though, but > : it didn't help mine either. Is your card an Orinoco Classic Gold? > > What firmware level do you have? Both wi and owi works for all my > lucent/wavelan/orinoco cards. :-( > Hi Warner, I have managed to get mine working. netstat -rn showed my problem, I was routing to the same point on two up interfaces. Disabling the one I dont used fixed it. Thanks for replying ! > Warner -- -Liam Foy http://liamfoy.kerneled.org "Do only what only you can do." ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Orinoco Gold and Linksys AP
M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> Søren Schmidt <[EMAIL PROTECTED]> writes: : Liam J. Foy wrote: : > Hey guys, : > : > I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: : > : > wi0: flags=8843 mtu 1500 : > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 : > inet 192.168.0.20 netmask 0xff00 broadcast 255.255.255.0 : > ether 00:02:2d:c0:2a:58 : > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) : > status: associated : > ssid Anduril 1:Anduril : > stationname "FreeBSD WaveLAN/IEEE node" : > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 : > rtsthreshold 2312 protmode CTS : > wepmode OFF weptxkey 1 : > : > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. : > : > Any hints or ideas are greatly thanked, : : My orinoco's hasn't worked since the if_wi driver was redone over a year : ago (yeah time flies. You might have better luck with if_owi though, but : it didn't help mine either. What firmware level do you have? Both wi and owi works for all my lucent/wavelan/orinoco cards. :-( Startet out with 4.something which almost worked in adhoc mode. Then I was told to upgrade as that should fix everything and the kitchen sink, so I went for 8.something, which was totally hopeless :} So I went out and bought me an accesspoint and now use ndis on my laptop, which works excelent... -- -Søren ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: general Darwin imports (was Re: Darwin cmd import?)
On Sat, 5 Jun 2004, Edwin Groothuis wrote: > Now the question of course is: where can I find it? It is somewhere in a > CVS repository (that would be nicest), or are it raw sourcefiles only? > > Edwin, now owning a Mac so not really familiar with things The Open Darwin web site has a web-based CVS browser, but there are some differences between the Apple Darwin and Open Darwin source bits. For our TrustedBSD work affecting Darwin, we generally work from the drops on Apple's www.opensource.apple.com web page, which are available as tarballs. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects [EMAIL PROTECTED] Senior Research Scientist, McAfee Research ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: general Darwin imports (was Re: Darwin cmd import?)
On Jun 5, 2004, at 2:55 PM, Robert Watson wrote: On Sat, 5 Jun 2004, Edwin Groothuis wrote: Now the question of course is: where can I find it? It is somewhere in a CVS repository (that would be nicest), or are it raw sourcefiles only? Edwin, now owning a Mac so not really familiar with things The Open Darwin web site has a web-based CVS browser, but there are some differences between the Apple Darwin and Open Darwin source bits. For our TrustedBSD work affecting Darwin, we generally work from the drops on Apple's www.opensource.apple.com web page, which are available as tarballs. Just about all of that is listed as covered by the APSL. (Except GPL'd stuff, it looks like.) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
machine is unusable with panic: vrele: negative ref cnt
On boot I see the following on an IBM T30 laptop: Mounting root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 panic: vrele: negative ref cnt syncing disks, buffers remaining... 9 9 9 9 9 9 9 9 9 9 \giving up on 9 buffers. And the same occurs on every reboot and the machine isn't usable anymore. I'd like to salvage the data that's in the hard disk. Any ideas on how ro recover data from the hard disk? The disk is only 4 months old. Thanks, Alan Evans ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"