portupgrade 'upgrades' ports that are not installed
Hi First of all i just went through the UPDATING instructions to upgrade my xorg to 7.2. It did not go very well because i can't finish the upgrade process. When i try to pkg_delete xorg-manpages it says they're required by the xorg-6.9 port. Now as far as i can see everything i'm running is in /usr/local and X -version says 7.2 everywhere. But there are still some 6.9 ports left and i can't tell the difference between which ones i can delete and which ones i'm supposed to keep. # pkg_info | grep xorg xorg-6.9.0 X.Org distribution metaport xorg-apps-7.2 X.org apps meta-port xorg-cf-files-1.0.2_2 X.org cf files for use with imake builds xorg-clients-6.9.0_2 X client programs and related files from X.Org xorg-docs-1.3,1 X.org documentation files xorg-documents-6.9.0 Documentation of X11 protocol and libraries from X.Org xorg-drivers-7.2X.org drivers meta-port xorg-fonts-100dpi-6.9.0_1 X.Org 100dpi bitmap fonts xorg-fonts-7.2 X.org fonts meta-port xorg-fonts-75dpi-6.9.0_1 X.Org 75dpi bitmap fonts xorg-fonts-cyrillic-6.9.0_1 X.Org Cyrillic bitmap fonts xorg-fonts-miscbitmaps-6.9.0_1 X.Org miscellaneous bitmap fonts xorg-fonts-truetype-6.9.0 X.Org TrueType fonts xorg-fonts-type1-6.9.0 X.Org Type1 fonts xorg-fontserver-6.9.0_1 X font server from X.Org xorg-libraries-7.2_2 X.org libraries meta-port xorg-manpages-6.9.0 X.Org library manual pages xorg-nestserver-6.9.0 Nesting X server from X.Org xorg-printserver-6.9.0 X Print server from X.Org xorg-protos-7.2 X.org protos meta-port xorg-server-1.2.0_2,1 X.Org X server and related programs xorg-server-6.9.0_1 X.Org X server and related programs xorg-vfbserver-6.9.0 X virtual framebuffer server from X.Org This is what it looks like after the upgrade. Also i'm not sure where to go for help with portupgrade but here seems like a good place to start. Now after i've run portupgrade -aP for the first time i tried to run it again just to see what it missed because i can't say the process progressed without errors, there were tons of them. Though this time i starts with a port i don't even have installed, gutenprint-base. It does not exist in /var/db/pkg, pkg_info doesn't find it and i can't make deinstall in the ports metadir because it's not installed. Yet portupgrade insists on 'upgrading' it by installing it for me. I'm thinking maybe it's a dependency of some newly upgraded port but i don't know how to make portupgrade show me that information. --- Med vänliga hälsningar Stefan Midjich (nocturnal) ~ http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which file to request SIOCGIFMAC on?
Hi Well that's weird, is MAC defined by default at all? I tried searching for the definition but couldn't find it. I never thought it would be this hard just to get the ethernet address from an ethernet interface in FreeBSD. I think i'll take a look at the netlib source next, something tells me it will be easier to just plagiarize their method than going through the kernel source any more. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Pietro Cerutti wrote: On 2/20/07, nocturnal <[EMAIL PROTECTED]> wrote: Hi The original plan is to only run it on FreeBSD 5 and higher, actually only 6 by now. It's a program i'm writing for work and at work the most active servers run FreeBSD 6 and are updated frequently. The ones with older versions don't run anything of interest. I am buying a MacBook for personal use though so it would be nice to run it on osx. I wouldn't like to start using another library just to get the hardware address of an interface though, that seems kinda overkill for what should be a simple task. The program is already using libpcap but that is included in FreeBSD by default so you don't have to install it. Do you have any idea of why i'm getting this error from ioctl when i'm doing what the manual says i should do? I am of course running it as root to because the libpcap operations require it. What might help me is to take a look at the source of that libnet_get_hwaddr function in libnet. I'll try that, thank you very much for the tip. So far i've been trying to look at the source for ifconfig to figure out how it gets the hardware address. Of course it uses SIOCGIFMAC but i can't find the socket it opens because i can't find where it uses the maclabel_status function. The problem isn't with the socket type or options. If you debug ifconfig, you'll find out that the ioctl call always returns -1, and the program goes on to the "goto mac_free" line. Take a look at /usr/src/sys/net/if.c, line 1258 Should we deduce that the particular ioctl isn't supported? P.S. I'm forwarding this to freebsd-hackers@ too, so sorry for cross posting Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Chuck Swiger wrote: > On Feb 20, 2007, at 1:10 PM, nocturnal wrote: >> I'm trying to get the ethernet address and from the manuals i >> understand that i need the ifreq structure for this. So i'm trying to >> request SIOCGIFMAC with ioctl on a socket of type SOCK_DGRAM. > > If you're just targetting FreeBSD >= 5.x platforms, your current > approach is reasonable (assuming you can fix whatever the problem is); > if you're targetting other platforms such FreeBSD 4, Dfly, OS X, or SysV > things like Solaris, try installing the libnet port and invoke > libnet_get_hwaddr(). > > ---Chuck > > > ___ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which file to request SIOCGIFMAC on?
Hi The original plan is to only run it on FreeBSD 5 and higher, actually only 6 by now. It's a program i'm writing for work and at work the most active servers run FreeBSD 6 and are updated frequently. The ones with older versions don't run anything of interest. I am buying a MacBook for personal use though so it would be nice to run it on osx. I wouldn't like to start using another library just to get the hardware address of an interface though, that seems kinda overkill for what should be a simple task. The program is already using libpcap but that is included in FreeBSD by default so you don't have to install it. Do you have any idea of why i'm getting this error from ioctl when i'm doing what the manual says i should do? I am of course running it as root to because the libpcap operations require it. What might help me is to take a look at the source of that libnet_get_hwaddr function in libnet. I'll try that, thank you very much for the tip. So far i've been trying to look at the source for ifconfig to figure out how it gets the hardware address. Of course it uses SIOCGIFMAC but i can't find the socket it opens because i can't find where it uses the maclabel_status function. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Chuck Swiger wrote: On Feb 20, 2007, at 1:10 PM, nocturnal wrote: I'm trying to get the ethernet address and from the manuals i understand that i need the ifreq structure for this. So i'm trying to request SIOCGIFMAC with ioctl on a socket of type SOCK_DGRAM. If you're just targetting FreeBSD >= 5.x platforms, your current approach is reasonable (assuming you can fix whatever the problem is); if you're targetting other platforms such FreeBSD 4, Dfly, OS X, or SysV things like Solaris, try installing the libnet port and invoke libnet_get_hwaddr(). ---Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Which file to request SIOCGIFMAC on?
Hi I'm trying to get the ethernet address and from the manuals i understand that i need the ifreq structure for this. So i'm trying to request SIOCGIFMAC with ioctl on a socket of type SOCK_DGRAM. Now i couldn't figure out from the manuals which format but i've tried PF_LOCAL, PF_INET and AF_INET. With PF_LOCAL i get the error "Operation not supported" from ioctl but with AF_INET or PF_INET i get "Invalid argument". This is a snippet of code that i use to get the ethernet address. Earlier code has already verified the char *ifname which contains the interface name. [..] int if_socket; struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); [..] strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); if((if_socket = socket(PF_INET, SOCK_DGRAM, 0)) < 0) { perror("socket: "); exit(-1); } if(ioctl(if_socket, SIOCGIFMAC, &ifr) < 0) { perror("ioctl: SIOCGIFMAC: "); exit(-1); } [..] I know the rest of the code works fine because this is something i'm adding to a working program. Also it's obviously stopping at the ioctl since i get the error "ioctl: SIOCGIFMAC: : Invalid argument". -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: packet destination from pcap
Hi After i wrote the e-mail to the list i figured out how to get the ethernet destination address of the packet. I'm not sure but this might help me because i need to figure out if the packet is moving towards me or away from me on the interface i've chosen. So i can compare this with the ethernet address of my chosen interface and figure out where it's going. Stop me if i'm wrong. :) Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Giorgos Keramidas wrote: On 2007-02-04 20:16, nocturnal <[EMAIL PROTECTED]> wrote: Hi I'm sniffing packets with pcap but i need information about where the packet is going. This is a decision made by the routing table, so there's no good way to 'guess' where it will go before the packet reaches the outgoing queue of the IP layer. I'm thinking i need to open two pcap sessions with two different filters because the application i'm writing has a need for distinguishing between packets going to a specified ip-address and those going from it. Well, the destination IP address should be easy to grab. Even if you do get hold of that though, you may have to listen to multiple pcap connections to find out where the routing decisions send the packet on its way out. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
packet destination from pcap
Hi I'm sniffing packets with pcap but i need information about where the packet is going. So far i haven't found any structure or any other way to get this information from looking at the pcap(3) manual and the pcap.h header file. I have not had a chance to go through the source for pcap yet because i have been offline for a while with no source on my laptop. I'm thinking i need to open two pcap sessions with two different filters because the application i'm writing has a need for distinguishing between packets going to a specified ip-address and those going from it. I doubt it should have to come to that though so that's why i ask here first. I could not reach the tcpdump list so i thought i'd ask here since it uses the bpf. Might be a long shot. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
LSI MegaRAID 1068 mfi(4) 6.1-RELEASE
Hi I'm trying to boot up a Dell PE 860 with what dell claims to be a LSI MegaRAID 1068 controller using FreeBSD 6.1-RELEASE. I've found listposts claiming that this worked as soon as FreeBSD 4.11 using the mpt driver. It seems as if the mfi driver is the one to use these days. I can't get it working though, it constantly says no disks were found. This driver should be compiled into GENERIC right? Has anyone else on the list tried using this driver for the LSI card? -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Network dies after a while with high torrent load
Hi This is the second time i've posted this to the list and explaining why will also explain some of the background for the problem. The last time i was having these problems was when i was downloading a certain thing each week using torrent, rtorrent running as a user. I stopped doing this for a while this summer but now i'm at it again and the problem is back. I think it's because this particular torrent has a lot of seeds and transfers a lot of data, very fast to me. I'm limited to 10Mbit/s here at home and ifstat -b reports over 1 constantly for a while before my network just dies and no data at all gets sent. At this point i can fix the problem by running dhclient on my network card again. During one transfer of around 300MB i had to run dhclient at least 15 times. I have a IBM ThinkPad R40 laptop with a Intel Pro 10/100 ethernet card using the fxp driver. Right now i'm running 6.1-RELEASE but i've been running FreeBSD on this laptop since i had 4.9-RELEASE. I can recreate the problem anytime i find a torrent that has enough seeds so that i can maintain the maximum speed for 10-15 seconds. The time it takes for my network to die is very random. Sometimes my net doesn't die at all if the torrent can't maintain over 1bit/s, it only has to drop once in ifstat for the network to handle it. I'm about to call my ISP and complain because i doubt this is a FreeBSD problem but i would like to have some confirmation from others on the list that it is possible to transfer 10 or more Mbit/s with much torrent traffic using the fxp driver in FreeBSD. Another reason i suspect something with my ISP is the fact that it dies at the speed i pay them for, it could be some error in the equipment they use to cap my bandwidth. I have no messages to show and i'm afraid i forgot to check ifconfig while the network was down but ifstat which is running constantly in a small window on my desktop reports 0.00 in and out while the network is down. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Alt Gr key troubles in FreeBSD
Hi I'm sorry for the late reply but i thought i had sent you an e-mail when actually i had not. I tried all the things you mentioned and i discovered that the problem can easily be reproduced in any application. It's simply a matter of me not letting go of the shift key fast enough. I reproduce it by typing any number of characters in caps with the shift key down and then directly switching to pressing the alt gr key and hitting the 8 character for example in order to produce the [ character on Swedish keyboards. This is when the output becomes silent and nothing happens. I tried on a co-workers computer which runs Windows and it's the same on that system. It's been a while since i properly used the Windows system so i had forgotten that it was like that there to. No reply is required to this thread as i have found out that this is just the way the driver works on both FreeBSD and Windows systems. So i have my answers. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Erik Nørgaard wrote: nocturnal wrote: Well i usually use vim and it's hard to know if it happens in other applications, because i use vim so much compared to the other applications and also because i mostly write those characters in vim. I do use FreeBSD at home to and i can't remember any problems from writing e-mails or chatting on irc. I use rxvt for all my terminal applications. Of course this could simply mean i don't use those characters much in those applications. I used to use nedit, before vim, and i am sure i had the same problem in nedit. Well, could you to narrow in on the problem try and test these things? 0th: Tell us your keyboard settings in XF86Config (model and layout) 1st: List the characters that you have problem with - obviously you need a computer that doesn't suffer this problem :) 2nd: Try to type all these characters with the correct key-combinations, - In the console - In xterm - In vi (not vim) - In xemacs/emacs - In firefox or thunderbird - any place you can type Then maybe someone can point you closer to the solution. Cheers, Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Alt Gr key troubles in FreeBSD
Hi I was afraid you wouldn't understand how the problem works. The chacters work on this computer, or i wouldn't be able to work daily with it, but at times they just get stuck and refuse to work temporarily until i let go of the alt gr key and try again. At rare times i can let go of the alt gr key to try again but they wont work until after two or three attempts. I doubt this is happening at random so i would like to say it happens when i type fast and change key combinations fast but sometimes it happens when i type slower to. I think it has something to do with me using shift just before i switch over and use alt gr, i think i'm simply switching over too fast. Actually, now that i said that, i just tried it in the thunderbird application where i'm writing this e-mail and i was able to reproduce the problem by typing a bunch of uppercase characters holding the shift key down and then directly trying to type [ using alt gr+8 on my keyboard. What happened was i got no character output for the [ character and after holding it for a while i heard a beep, then i let go of alt gr and 8 was output. It's probably because shift+8 is supposed to produce the ( character while alt gr+8 produces the [ character so there's some kinda conflict when i don't let go of shift fast enough. My theory is that i was so used to Windows after years of using it that this happened to me a lot. I also suspect that the Windows driver that handles this is more developed in the sense that you can hit shift+alt gr+8 but if those keys have no kombination in that order it simply takes the last keys which had a combination and uses them, alt gr+8 that is. I'm just guessing of course. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Erik Nørgaard wrote: nocturnal wrote: Well i usually use vim and it's hard to know if it happens in other applications, because i use vim so much compared to the other applications and also because i mostly write those characters in vim. I do use FreeBSD at home to and i can't remember any problems from writing e-mails or chatting on irc. I use rxvt for all my terminal applications. Of course this could simply mean i don't use those characters much in those applications. I used to use nedit, before vim, and i am sure i had the same problem in nedit. Well, could you to narrow in on the problem try and test these things? 0th: Tell us your keyboard settings in XF86Config (model and layout) 1st: List the characters that you have problem with - obviously you need a computer that doesn't suffer this problem :) 2nd: Try to type all these characters with the correct key-combinations, - In the console - In xterm - In vi (not vim) - In xemacs/emacs - In firefox or thunderbird - any place you can type Then maybe someone can point you closer to the solution. Cheers, Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Alt Gr key troubles in FreeBSD
Hi Well i usually use vim and it's hard to know if it happens in other applications, because i use vim so much compared to the other applications and also because i mostly write those characters in vim. I do use FreeBSD at home to and i can't remember any problems from writing e-mails or chatting on irc. I use rxvt for all my terminal applications. Of course this could simply mean i don't use those characters much in those applications. I used to use nedit, before vim, and i am sure i had the same problem in nedit. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Erik Norgaard wrote: nocturnal wrote: i noticed major issues with Alt Gr keys. I think they're called deadkeys in the X.org configuration. It's mainly because i'm from sweden and have all the important characters like {, [, ], }, among others, on keys that require the Alt Gr key to be pressed for me to use them. It's hard to reproduce the problem as sometimes i can type at very high speed and still not have a problem when i hit an alt gr character and other times i type really slow but get stuck on the alt gr characters. Dead keys AFAIK refers to the keys you normally use to compose other characters with, such as ^ which you normally use to write a character like â or ~ to write ñ. The keys you refer to, {},[] are not "dead" keys. While I have had problems with _dead keys_ in some programs, I have never had problems with the characters you mention (I use a danish keyboard). One thing I have noticed is that this may be application specific, you may be able to write the character in one program under X but not in another. I had for example a problem writing ñ with eterm while it worked perfectly in xterm. Some programs allow or require you to set these things separately, for example xemacs and thunderbird. I'd love it if someone could point me in the right direction because i suspect this could be something i need to take up with the x.org people. First check if this problem occurs in all applications or just some applications, do also try xterm and vi under xterm. Also, try on a plain console without X. And check your keyboard setting in your XF86Config. If the problem is specific to some applications, post which. Cheers, Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Alt Gr key troubles in FreeBSD
Hi These problems have been going on ever since i first started using FreeBSD frequently with 4.10-RELEASE. Before that i used Windows to write software and would usually upload it onto a FreeBSD ftp server. This was no problem for me in Windows but as soon as i made the switch to FreeBSD at work and started actually writing code in FreeBSD 8 hours a day, 5 days a week, i noticed major issues with Alt Gr keys. I think they're called deadkeys in the X.org configuration. It's mainly because i'm from sweden and have all the important characters like {, [, ], }, among others, on keys that require the Alt Gr key to be pressed for me to use them. It's hard to reproduce the problem as sometimes i can type at very high speed and still not have a problem when i hit an alt gr character and other times i type really slow but get stuck on the alt gr characters. What happens is that the character just doesn't work, once the problem happens i can very often just hold the alt gr key and keep hitting the other key multiple times without anything at all happening, at those times i actually must let go of the alt gr key in order to continue typing. Even if the problem is very hard for me to reproduce i am 100% sure it is a problem because like i said, i do this every day of my life and i know this happens. My boss has discovered it to, he does not write as much code as i do but sometimes he writes a perl program or two and he has the same problems. I think maybe one of the reasons i haven't heard much about this problem could be that i use a Swedish keyboard layout and require the deadkeys, this combination along with someone who writes as much code as i do and cares enough about the problen to solve it might be rare so i haven't been able to find anything at all about this problem on search engines like Google. I would love to solve the problem though, even if i've learned to live with it, it's the most annoying thing ever when you get a good flow going in your code writing and suddenly it all gets stuck on some damn alt gr key. I'd love it if someone could point me in the right direction because i suspect this could be something i need to take up with the x.org people. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Interrupt using all the CPU
Hi Yes i suspected a bug when i first saw this because of what you say. 100% CPU usage should be noticed. I found out by accident looking at top. I'll see if we can update the system, it's not high priority right now but thank you all for your help. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Nikos Vassiliadis wrote: On Tuesday 04 July 2006 13:10, nocturnal wrote: Hi The -m argument exists in 5.3-RELEASE, thank you. I've attached one file with -mio and the other without. With -mio it just output some extra stuff at the beginning so i don't know how much it matters or maybe i did something wrong. I see nothing backing up those numbers... You said it doesn't seem to affect the web server, That everything feels normal. You cannot feel the load using the box, typing, etc, right? In cases where interrupts reach 25%, the load is very easily noticable, that means you have trouble typing...I would say that such a percentage (100%) is false, you wouldn't be able to log in to the box, the kernel itself would have trouble doing something, but interrupt handling. A wild guess would be that you hit a bug. After all 5.3-RELEASE was the first release marked STABLE from the 5 branch. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Nikos Vassiliadis wrote: On Tuesday 04 July 2006 11:40, nocturnal wrote: Hi This is what i get, i'm afraid i'm not good at interpreting the results. procs memory pagedisks faults cpu r b w avmfre flt re pi po fr sr ad4 ad6 in sy cs us sy id 1 5 0 274324 36436 26 0 0 0 50 27 0 0 242 149 332 0 88 12 1 5 0 274324 364243 0 0 0 3 0 1 0 338 911 462 0 50 50 1 5 0 274324 364240 0 0 0 0 0 16 0 391 1011 581 0 33 67 1 5 0 274324 364240 0 0 0 3 0 1 0 611 263 877 0 33 67 1 5 0 274324 364240 0 0 0 0 0 1 0 674 128 931 0 75 25 1 5 0 274324 364240 0 0 0 0 0 0 0 563 118 711 0 0 100 1 5 0 274324 364240 0 0 0 0 0 0 0 531 129 702 0 67 33 1 5 0 274324 364240 0 0 0 0 0 0 0 440 118 578 0 50 50 1 6 0 274324 363760 0 0 0 0 0 0 0 563 158 774 0 67 33 1 5 0 274324 362680 0 0 0 0 0 10 0 702 1019 920 0 100 0 1 5 0 274324 362680 0 0 0 0 0 0 0 683 118 872 0 25 75 0 6 0 291460 33800 955 0 0 0 333 0 0 0 783 1423 1069 0 50 50 0 5 0 274324 36240 611 0 0 0 1500 0 0 0 491 567 707 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 717 121 986 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 729 129 923 0 33 67 0 5 0 274324 362400 0 0 0 0 0 0 0 570 118 742 0 50 50 0 5 0 274324 362400 0 0 0 0 0 0 0 568 1381 793 0 33 67 0 5 0 274324 362400 0 0 0 4 0 32 0 716 129 1036 0 75 25 0 5 0 274324 362400 0 0 0 0 0 0 0 745 118 843 0 75 25 0 5 0 274324 362400 0 0 0 0 0 7 0 610 137 820 0 67 33 0 5 0 274324 362400 0 0 0 0 0 0 0 465 174 630 0 0 100 0 5 0 274324 362400 0 0 0 0 0 0 0 327 237 454 0 50 50 0 5 0 274324 362400 0 0 0 0 0 0 0 253 125 323 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 249 127 314 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 240 118 303 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 238 125 301 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 255 129 330 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 258 144 337 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 269 129 358 0 100 0 0 5 0 274324 362360 0 0 0 0 0 2 0 312 527 431 0 100 0 0 5 0 274324 362360 0 0 0 12 0 21 0 287 129 409 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 257 128 331 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 253 118 324 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 248 128 315 0 100 0 0 5 0 274324 362360 0 0 0 0 0 5 0 257 118 333 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 257 118 327 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 294 118 366 0 100 0 Please turn off word wrapping on your mail program when you send such output. Or send as attachment. Well, normal number of interrupts, a lot of time in kernel, quite a few context switches send as attachment "top -n -S -I -d 10" please There is also a -m in 6.x, don't know about 5.3-R, but it would be interesting if it exists from top manual: -mdi
Re: Interrupt using all the CPU
Hi The -m argument exists in 5.3-RELEASE, thank you. I've attached one file with -mio and the other without. With -mio it just output some extra stuff at the beginning so i don't know how much it matters or maybe i did something wrong. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Nikos Vassiliadis wrote: On Tuesday 04 July 2006 11:40, nocturnal wrote: Hi This is what i get, i'm afraid i'm not good at interpreting the results. procs memory pagedisks faults cpu r b w avmfre flt re pi po fr sr ad4 ad6 in sy cs us sy id 1 5 0 274324 36436 26 0 0 0 50 27 0 0 242 149 332 0 88 12 1 5 0 274324 364243 0 0 0 3 0 1 0 338 911 462 0 50 50 1 5 0 274324 364240 0 0 0 0 0 16 0 391 1011 581 0 33 67 1 5 0 274324 364240 0 0 0 3 0 1 0 611 263 877 0 33 67 1 5 0 274324 364240 0 0 0 0 0 1 0 674 128 931 0 75 25 1 5 0 274324 364240 0 0 0 0 0 0 0 563 118 711 0 0 100 1 5 0 274324 364240 0 0 0 0 0 0 0 531 129 702 0 67 33 1 5 0 274324 364240 0 0 0 0 0 0 0 440 118 578 0 50 50 1 6 0 274324 363760 0 0 0 0 0 0 0 563 158 774 0 67 33 1 5 0 274324 362680 0 0 0 0 0 10 0 702 1019 920 0 100 0 1 5 0 274324 362680 0 0 0 0 0 0 0 683 118 872 0 25 75 0 6 0 291460 33800 955 0 0 0 333 0 0 0 783 1423 1069 0 50 50 0 5 0 274324 36240 611 0 0 0 1500 0 0 0 491 567 707 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 717 121 986 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 729 129 923 0 33 67 0 5 0 274324 362400 0 0 0 0 0 0 0 570 118 742 0 50 50 0 5 0 274324 362400 0 0 0 0 0 0 0 568 1381 793 0 33 67 0 5 0 274324 362400 0 0 0 4 0 32 0 716 129 1036 0 75 25 0 5 0 274324 362400 0 0 0 0 0 0 0 745 118 843 0 75 25 0 5 0 274324 362400 0 0 0 0 0 7 0 610 137 820 0 67 33 0 5 0 274324 362400 0 0 0 0 0 0 0 465 174 630 0 0 100 0 5 0 274324 362400 0 0 0 0 0 0 0 327 237 454 0 50 50 0 5 0 274324 362400 0 0 0 0 0 0 0 253 125 323 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 249 127 314 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 240 118 303 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 238 125 301 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 255 129 330 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 258 144 337 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 269 129 358 0 100 0 0 5 0 274324 362360 0 0 0 0 0 2 0 312 527 431 0 100 0 0 5 0 274324 362360 0 0 0 12 0 21 0 287 129 409 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 257 128 331 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 253 118 324 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 248 128 315 0 100 0 0 5 0 274324 362360 0 0 0 0 0 5 0 257 118 333 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 257 118 327 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 294 118 366 0 100 0 Please turn off word wrapping on your mail program when you send such output. Or send as attachment. Well, normal number of interrupts, a lot of time in kernel, quite a few context switches send as attachment "top -n -S -I -d 10" please There is also a -m in 6.x, don't know about 5.3-R, but it would be interesting if it exists from top manual: -mdisplay Display either cpu or io statistics. Default is cpu. last pid: 29582; load averages: 0.01, 0.13, 0.08 up 3+21:29:1412:06:22 114 processes: 2 running, 87 sleeping, 25 waiting Mem: 193M Active, 300M Inact, 99M Wired, 22M Cache, 73M Buf, 5488K Free Swap: 329M Total, 376K Used, 329M Free PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND 498 www 49228 98410540 5580122 6242 1.35% httpd 465 www 50096 103518736 2877423 4036 0.88% httpd 489 www 54847 93551771 4688335 5794 1.26% httpd 605 www 48318 89215577 4239112 4928 1.07% httpd 2326 www 46595 104188597 3857150 4604 1.00% httpd 46 root 337454 0830 358189 0 359019 77.88% syncer 2315 www 44607 74767795 4356131 5282 1.15% httpd 19562 www 19505 54030558 1805214 2577 0.56% httpd 16684 www
Re: Interrupt using all the CPU
Hi This is what i get, i'm afraid i'm not good at interpreting the results. procs memory pagedisks faults cpu r b w avmfre flt re pi po fr sr ad4 ad6 in sy cs us sy id 1 5 0 274324 36436 26 0 0 0 50 27 0 0 242 149 332 0 88 12 1 5 0 274324 364243 0 0 0 3 0 1 0 338 911 462 0 50 50 1 5 0 274324 364240 0 0 0 0 0 16 0 391 1011 581 0 33 67 1 5 0 274324 364240 0 0 0 3 0 1 0 611 263 877 0 33 67 1 5 0 274324 364240 0 0 0 0 0 1 0 674 128 931 0 75 25 1 5 0 274324 364240 0 0 0 0 0 0 0 563 118 711 0 0 100 1 5 0 274324 364240 0 0 0 0 0 0 0 531 129 702 0 67 33 1 5 0 274324 364240 0 0 0 0 0 0 0 440 118 578 0 50 50 1 6 0 274324 363760 0 0 0 0 0 0 0 563 158 774 0 67 33 1 5 0 274324 362680 0 0 0 0 0 10 0 702 1019 920 0 100 0 1 5 0 274324 362680 0 0 0 0 0 0 0 683 118 872 0 25 75 0 6 0 291460 33800 955 0 0 0 333 0 0 0 783 1423 1069 0 50 50 0 5 0 274324 36240 611 0 0 0 1500 0 0 0 491 567 707 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 717 121 986 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 729 129 923 0 33 67 0 5 0 274324 362400 0 0 0 0 0 0 0 570 118 742 0 50 50 0 5 0 274324 362400 0 0 0 0 0 0 0 568 1381 793 0 33 67 0 5 0 274324 362400 0 0 0 4 0 32 0 716 129 1036 0 75 25 0 5 0 274324 362400 0 0 0 0 0 0 0 745 118 843 0 75 25 0 5 0 274324 362400 0 0 0 0 0 7 0 610 137 820 0 67 33 0 5 0 274324 362400 0 0 0 0 0 0 0 465 174 630 0 0 100 0 5 0 274324 362400 0 0 0 0 0 0 0 327 237 454 0 50 50 0 5 0 274324 362400 0 0 0 0 0 0 0 253 125 323 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 249 127 314 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 240 118 303 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 238 125 301 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 255 129 330 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 258 144 337 0 100 0 0 5 0 274324 362400 0 0 0 0 0 0 0 269 129 358 0 100 0 0 5 0 274324 362360 0 0 0 0 0 2 0 312 527 431 0 100 0 0 5 0 274324 362360 0 0 0 12 0 21 0 287 129 409 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 257 128 331 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 253 118 324 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 248 128 315 0 100 0 0 5 0 274324 362360 0 0 0 0 0 5 0 257 118 333 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 257 118 327 0 100 0 0 5 0 274324 362360 0 0 0 0 0 0 0 294 118 366 0 100 0 Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Nikos Vassiliadis wrote: On Tuesday 04 July 2006 09:57, nocturnal wrote: Hi kern.clockrate: { hz = 100, tick = 1, profhz = 1024, stathz = 128 } I'm going to see if it's possible to disable USB from the BIOS later today, if not, can i disable the USB devices in the kernel? are you sure you have to? Try vmstat -w1 to see the number of interrupts as advised by Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Interrupt using all the CPU
Hi kern.clockrate: { hz = 100, tick = 1, profhz = 1024, stathz = 128 } I'm going to see if it's possible to disable USB from the BIOS later today, if not, can i disable the USB devices in the kernel? Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Chuck Swiger wrote: Nikos Vassiliadis wrote: On Monday 03 July 2006 14:06, Daan Vreeken [PA4DAN] wrote: [ ... ] interrupt total rate irq0: clk 25130235 99 irq1: atkbd0 4 0 irq6: fdc0 1 0 irq7: ppc0 1 0 irq8: rtc 288300 1 irq11: atapci1637852 2 irq12: vr0 uhci0+3890833 15 irq13: npx01 0 irq14: ata0 54 0 Total 29947281119 Hmm.. There seems to be nothing wrong with these numbers. If you were suffering from an interrupt storm I would have expected much larger numbers in the "rate" column. The column "rate" shows the average number of interrupts / second. In total your system handles about 120 interrupts / second, so that shouldn't be a problem. I have the feeling that rate is calculated like this: number of interrupts since boottime / seconds of uptime OK. so, this won't help if his is having now an interrupt storm while most of the time the system is interrupted ~ 120 times per second An interrupt storm on what, though? The ~100 interrupts per second from the clock on IRQ0 are absolutely normal with HZ=100; the only other candidate seems to be the combination of vr0 & USB controller on IRQ 12. If it's possible to disable the USB controller for a bit in the BIOS, it would be interesting to see whether that makes any difference. You can probably kill the parallel port, too. It's also interesting to note that IRQ 8, the RTC, seems to be mostly idle-- normally that fires at stathz=128...check "sysctl kern.clockrate". systat -vmstat $time shows interrupts per second regarding the last $time seconds Right, although the output from "vmstat 1" would survive being pasted into email better, I suspect. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Interrupt using all the CPU
Hi I'm sorry for the second e-mail but the uname is. FreeBSD unix.swebase.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 We haven't even recompiled the kernel since the install. It was supposed to be a temporary machine but turned into a development machine for me and some other developers. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Daan Vreeken [PA4DAN] wrote: On Monday 03 July 2006 12:26, nocturnal wrote: Hi The clock? interrupt total rate irq0: clk 25130235 99 irq1: atkbd0 4 0 irq6: fdc0 1 0 irq7: ppc0 1 0 irq8: rtc 288300 1 irq11: atapci1637852 2 irq12: vr0 uhci0+3890833 15 irq13: npx01 0 irq14: ata0 54 0 Total 29947281119 Hmm.. There seems to be nothing wrong with these numbers. If you were suffering from an interrupt storm I would have expected much larger numbers in the "rate" column. The column "rate" shows the average number of interrupts / second. In total your system handles about 120 interrupts / second, so that shouldn't be a problem. Are you using "powerd" perhaps? Could it be that your system goes into a too deep sleep state where interrupt handling costs significantly more time? grtz, Daan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Interrupt using all the CPU
Hi No powerd running and i've never heard of that daemon. It's a pretty basic noname machine acting as a small scale webserver and a non-public nameserver. I've asked aroung and nobody can remember how long it's been like this so it's very possible that it's been acting like this since we installed it but i highly doubt it because we've had problems with it in the past and usually when something happens you check top at least once. It doesn't have much traffic either, if you shutdown the webserver the traffic is almost none, mostly arp and DNS traffic. CPU states: 0.0% user, 0.0% nice, 0.0% system, 100% interrupt, 0.0% idle Mem: 130M Active, 355M Inact, 108M Wired, 22M Cache, 73M Buf, 5668K Free Swap: 329M Total, 316K Used, 329M Free This is what it usually looks like, or here in an iostat view, in case it helps. tty ad4 ad6 ast0 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 03 28.14 2 0.06 0.57 0 0.00 0.00 0 0.00 0 0 7 83 10 0 227 16.00 1 0.02 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 16.00 11 0.17 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 6.00 1 0.01 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 50 50 0 76 16.00 2 0.03 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0 0 0 100 0 Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Daan Vreeken [PA4DAN] wrote: On Monday 03 July 2006 12:26, nocturnal wrote: Hi The clock? interrupt total rate irq0: clk 25130235 99 irq1: atkbd0 4 0 irq6: fdc0 1 0 irq7: ppc0 1 0 irq8: rtc 288300 1 irq11: atapci1637852 2 irq12: vr0 uhci0+3890833 15 irq13: npx01 0 irq14: ata0 54 0 Total 29947281119 Hmm.. There seems to be nothing wrong with these numbers. If you were suffering from an interrupt storm I would have expected much larger numbers in the "rate" column. The column "rate" shows the average number of interrupts / second. In total your system handles about 120 interrupts / second, so that shouldn't be a problem. Are you using "powerd" perhaps? Could it be that your system goes into a too deep sleep state where interrupt handling costs significantly more time? grtz, Daan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Interrupt using all the CPU
Hi The clock? interrupt total rate irq0: clk 25130235 99 irq1: atkbd0 4 0 irq6: fdc0 1 0 irq7: ppc0 1 0 irq8: rtc 288300 1 irq11: atapci1637852 2 irq12: vr0 uhci0+3890833 15 irq13: npx01 0 irq14: ata0 54 0 Total 29947281119 Also, in reply to Fabian Kell; top -S doesn't show me which process is using all the interrupt CPU, thank you for the tip. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Daan Vreeken [PA4DAN] wrote: On Monday 03 July 2006 10:38, nocturnal wrote: Hi I'm having a few problems with a webserver. Today the idle was at 0.0 and it's still like this. It doesn't look like it's affecting web services but it looks weird and i'm afraid that the CPU is working it's ass off with something. Of course nothing shows up in top or ps that could indicate which process is taking up all this cpu and since interrupt is the one using it i'm not even sure anything is actually using up CPU since i don't know what interrupt is. Any hints or pointers would be appreciated. It looks like interrupt and system are fighting for percents, interrupt has 100% constantly and as soon as interrupt drops system takes exactly what's left over and sometimes system doesn't do it so idle gets a few percents. It's weird to me simply because i can't find a description of what interrupt shows in top anywhere in the manuals. Try "vmstat -i" to show you what device is causing the interrupts. grtz, Daan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Interrupt using all the CPU
Hi I'm having a few problems with a webserver. Today the idle was at 0.0 and it's still like this. It doesn't look like it's affecting web services but it looks weird and i'm afraid that the CPU is working it's ass off with something. Of course nothing shows up in top or ps that could indicate which process is taking up all this cpu and since interrupt is the one using it i'm not even sure anything is actually using up CPU since i don't know what interrupt is. Any hints or pointers would be appreciated. It looks like interrupt and system are fighting for percents, interrupt has 100% constantly and as soon as interrupt drops system takes exactly what's left over and sometimes system doesn't do it so idle gets a few percents. It's weird to me simply because i can't find a description of what interrupt shows in top anywhere in the manuals. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Chrooted ftpd users can't access system time.
Hi I use /etc/ftpchroot to chroot the users but i don't think i should be forced to link a file into each users home directory. That's not only a lot of users but there will also be questions from users about what kind of file it is and what it's doing there. I would appreciate any other solutions, if they exist. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Greg Barniskis wrote: nocturnal wrote: Hi I'm using the ftpd server that ships with FreeBSD and when i chroot a user i notice that all created directories and files have GMT time on them as if the process can't access the system time because it's chrooted. That's only my theory. I would love a way to solve this, i just can't imagine that people have had this problem for so long without solving it. I believe you merely need to copy or link the system's /etc/localtime to the effective /etc of the chroot tree. But that's from memory, could only be theory too. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Chrooted ftpd users can't access system time.
Hi I'm using the ftpd server that ships with FreeBSD and when i chroot a user i notice that all created directories and files have GMT time on them as if the process can't access the system time because it's chrooted. That's only my theory. I would love a way to solve this, i just can't imagine that people have had this problem for so long without solving it. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Net dies after many torrent packets, BUG?!
Hi Not sure how to answer your question but the network dies in a way that i can't send any packets out or recive any packets in. What usually helps is to run dhclient fxp0 on my card again. My friend said he used to bring the card down and then up again and it would solve the issue. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Nikos Vassiliadis wrote: On Thursday 01 June 2006 16:30, nocturnal wrote: Hi One thing i should have mentioned is that this only happens with rtorrent. For example i can transfer in 10Mbit+(not much plus) from work, where i have no bandwidth restriction, for hours without problems. Using scp, i have not tried with ftp and very large files. When i transfer large files from work with scp i can maintain a speed of 10Mbit+ for long periods of times without problems. This problem has only happened because of rtorrent using a lot of bandwidth. And as i said earlier it happens when using less bandwidth to. Is you computer behing a dsl modem/router which does NAT? Sometimes modem/routers cannot handle the number of connections torrents do and die. And most of the time you cannot have a clue, everything will look normal, but it won't do NAT. Also, what do mean when you say "net dies"? Do you mean internet dies or your LAN dies? Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Lowell Gilbert wrote: nocturnal <[EMAIL PROTECTED]> writes: Not sure if this is already posted or already reported as a bug because i honestly don't have time for those things. I have reproduced this problem a few times but it has some special requirements. For example i download a torrent from a very fast peer in the rtorrent client. I have reproduced this with both rTorrent 0.4.5 - libTorrent 0.8.5 and two earlier versions which i don't remember. My friend is using the same versions as i am now and reported no problems in the latest development versions, he only started using them today. I have a 10/10Mbit connection at home and this happens when rtorrent is downloading at max speed. It varies somewhere around 7-10Mbit but never over 10Mbit by much. My friend only has a capacity of 1Mbit but got the same problem. This is why i'm reporting this because if it turns out that this can be reproduced by sending speciall crafted packets or packets in a special order then i guess it's pretty serious. I highly doubt this but still, a user process should not kill the net like rtorrent has done. Both me and my friend were running FreeBSD 6.0 RELEASE when this happened. I was not going to report this but a friend just told me he gets the exact same results on FreeBSD 6.0 so i felt i should tell someone. Do you have good NICs? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Net dies after many torrent packets, BUG?!
Hi One thing i should have mentioned is that this only happens with rtorrent. For example i can transfer in 10Mbit+(not much plus) from work, where i have no bandwidth restriction, for hours without problems. Using scp, i have not tried with ftp and very large files. When i transfer large files from work with scp i can maintain a speed of 10Mbit+ for long periods of times without problems. This problem has only happened because of rtorrent using a lot of bandwidth. And as i said earlier it happens when using less bandwidth to. Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se Lowell Gilbert wrote: nocturnal <[EMAIL PROTECTED]> writes: Not sure if this is already posted or already reported as a bug because i honestly don't have time for those things. I have reproduced this problem a few times but it has some special requirements. For example i download a torrent from a very fast peer in the rtorrent client. I have reproduced this with both rTorrent 0.4.5 - libTorrent 0.8.5 and two earlier versions which i don't remember. My friend is using the same versions as i am now and reported no problems in the latest development versions, he only started using them today. I have a 10/10Mbit connection at home and this happens when rtorrent is downloading at max speed. It varies somewhere around 7-10Mbit but never over 10Mbit by much. My friend only has a capacity of 1Mbit but got the same problem. This is why i'm reporting this because if it turns out that this can be reproduced by sending speciall crafted packets or packets in a special order then i guess it's pretty serious. I highly doubt this but still, a user process should not kill the net like rtorrent has done. Both me and my friend were running FreeBSD 6.0 RELEASE when this happened. I was not going to report this but a friend just told me he gets the exact same results on FreeBSD 6.0 so i felt i should tell someone. Do you have good NICs? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Net dies after many torrent packets, BUG?!
Hi Not sure if this is already posted or already reported as a bug because i honestly don't have time for those things. I have reproduced this problem a few times but it has some special requirements. For example i download a torrent from a very fast peer in the rtorrent client. I have reproduced this with both rTorrent 0.4.5 - libTorrent 0.8.5 and two earlier versions which i don't remember. My friend is using the same versions as i am now and reported no problems in the latest development versions, he only started using them today. I have a 10/10Mbit connection at home and this happens when rtorrent is downloading at max speed. It varies somewhere around 7-10Mbit but never over 10Mbit by much. My friend only has a capacity of 1Mbit but got the same problem. This is why i'm reporting this because if it turns out that this can be reproduced by sending speciall crafted packets or packets in a special order then i guess it's pretty serious. I highly doubt this but still, a user process should not kill the net like rtorrent has done. Both me and my friend were running FreeBSD 6.0 RELEASE when this happened. I was not going to report this but a friend just told me he gets the exact same results on FreeBSD 6.0 so i felt i should tell someone. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to get the login class name from a uid?
Hi Reading the login_cap(3) manual i thought i would get default returned if no other login classes are found but it's possible i misunderstood the manual. A sample of code i'm using is below. The user running the application is in a login class other than default, i've verified this in the master.passwd files class field. I have also rebuilt the termcap database for login.conf after adding the class. Right the new class only has a simple :tc=default: to test if it works. The code below outputs only (null). uid_t uid = getuid(); struct passwd * pw = getpwuid(uid); login_cap_t * lc = login_getuserclass(pw); printf("%s\n", lc->lc_class); Thank you in advance for any help. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
List & Description of process STATE modes
Hi I'm looking for a list with descriptions of all the modes that appear in STATE when running top(1). I'm talking about kqread, select, nanslp, piperd and so forth. Someone on Freenode IRC told me to search for msleep and tsleep in the kernel source but i found nothing i could use in the results. If someone could help me find a list of all the available modes i could put together a description for them myself. I've tried searching the kernel source code for these different modes but they are used in so many places. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Hosting a mirror?
Hi Sorry for my last e-mail, i was not paying attention and found everything i needed now. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Hosting a mirror?
Hi I really tried finding information for people who can host mirrors but could not find any. I'd like to know everything i need to know about hosting a mirror for the FreeBSD project and how i apply for it. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Open tty limit of 32?
Hi Recently, helping a friend setup a shellserver, i noticed some kind of limit on the number of open ttys. I count 32 open ttys by remote users before users start getting locked out. Any user trying to login after "ls -la /dev/tty* | grep -v wheel | wc -l" starts returning 32 get the following message along with a distorted terminal that is completly locked. "Warning: no access to tty (Bad file descriptor)." There are random users using ttys, some two ttys and others maybe more but it's always 32 open. I almost wanted to post this on hackers because i've searched the net like a maniac without answers and no one on irc could answer me. I've also tried searching through the src/sys for anything defined to 32. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Unexpected swap unmounts
Hi I'm running a FreeBSD 4.11 system on my laptop, before that i had 4.10 and it's always worked great, i can't think of any new major changes i've made or things i've done in the last months. Just recently it started unmounting my swap partition for some reason, i get no warning but i have started checking dmesg and see it happen. Only a reboot can fix it, i've tried doing swapon /dev/partition as listed in fstab but it returns invalid argument. One warning signal which i can see if i continue using the laptop like usual for a while after the unmount is that firefox gets killed, or any other heavy application. Of course this is a cause of not having any swap mounted and dmesg tells me that. As i had recently switched to XFCE from fluxbox i suspected it was too heavy for my laptop but switching back to fluxbox made no difference. One thing that did happen just before the problems was a lib issue after a portupgrade, it forced me to map a few libs to their current versions in libmap.conf but i had it running for at least a few weeks after that without problems, it is hard to tell though. This is my libmpa.conf file. = #firefox libglib-2.0.so.400 libglib-2.0.so.600 #thunderbird libgtk-x11-2.0.so.400 libgtk-x11-2.0.so.600 libgdk-x11-2.0.so.400 libgdk-x11-2.0.so.600 libatk-1.0.so.800 libatk-1.0.so.901 libgdk_pixbuf-2.0.so.400libgdk_pixbuf-2.0.so.600 libpangoxft-1.0.so.600 libpangoxft-1.0.so.800 libpangox-1.0.so.600libpangox-1.0.so.800 libpango-1.0.so.600 libpango-1.0.so.800 libgobject-2.0.so.400 libgobject-2.0.so.600 libgmodule-2.0.so.400 libgmodule-2.0.so.600 #file-roller libpangoft2-1.0.so.600 libpangoft2-1.0.so.800 libgthread-2.0.so.400 libgthread-2.0.so.600 = This is the message i get indicating that my swap partition is no longer mounted. swap_pager_getswapspace: failed I sure hope someone knows what to do and if you want to suggest migrating to the 5 branch then thats ok because i've been thinking of doing that. I'm using an IBM ThinkPad R40 with 256MB of RAM and a 1.9GHz Pentium 4 Mobile CPU. Here is my kernel config file to in case it helps. = machine i386 #cpuI386_CPU #cpuI486_CPU #cpuI586_CPU cpu I686_CPU ident NOCTURNAL maxusers32 #makeoptionsDEBUG=-g#Build kernel with gdb(1) debug symbols options MATH_EMULATE#Support for x87 emulation options INET#InterNETworking #optionsINET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT#FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT#NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000#Delay (in ms) before probing SCSI options UCONSOLE#Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B#Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM#Rate limit bad replies options KBD_INSTALL_CDEV# install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~215k to driver. # To make an SMP kernel, the next two are needed #optionsSMP # Symmetric MultiProcessor Kernel #optionsAPIC_IO # Symmetric (APIC) I/O device isa device eisa device pci # Floppy drives #de
sysctl.conf values reseting
Hi While i had one value(kern.ps_showallprocs) in sysctl.conf all was fine but then i added a few extra values and now each time i boot i see the sysctl values in sysctl.conf being reset to their defaults. This is my sysctl.conf: kern.ps_showallprocs = 0 kern.ipc.shmmax = 67108864 kern.ipc.shmall = 32768 hw.snd.pcm0.vchans = 4 hw.snd.maxautovchans = 4 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
sendmail just wont work
Hi I don't think i'll be lying when i say that i've setup close to a hundred FreeBSD servers(or 100 times) and the last one i setup was for a dedicated server customer but it has me stumped cuz sendmail just wont work on it, i used to get some localhost related errors in /var/log/maillog which i did not save. It did say something about Connection refused by localhost. In rc.conf i have sendmail set to NONE since it's not a smtp server, only a webserver and i have other webservers which have the sendmail option in rc.conf set to NONE but on them people can use the php mail function just fine. The issue is mainly that they want to use the mail() function in PHP but i've also tried just sending mails from the command line with sendmail and with the t argument but it never works. I don't know what else to say, if you need more info about the system then ask me. It's FreeBSD 4.10 and here are some config files. /etc/hosts ::1 localhost.polarfilm.com localhost 127.0.0.1 localhost.polarfilm.com localhost #213.80.36.150 web01.polarfilm.com web01 #213.80.36.150 web01.polarfilm.com. - /etc/rc.conf defaultrouter="secret" font8x14="iso15-8x14" font8x16="iso15-8x16" font8x8="iso15-8x8" hostname="web01" ifconfig_fxp0="inet secret netmask secret" inetd_enable="NO" kern_securelevel_enable="NO" keymap="swedish.cp850" nfs_reserved_port_only="YES" scrnmap="iso-8859-1_to_cp437" sendmail_enable="NONE" sshd_enable="YES" hostname="secret" usbd_enable="NO" moused_type="NO" moused_enable="NO" linux_enable="YES" - -- With kind regards Stefan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Binary/ASCII File upload issues
if i do file index.php on a file i uploaded that works just fine with php ran as cgi i get "/path/index.php: a /usr/local/bin/php script text executable" and if i do file index.php on a customers index.php file which i think they uploaded using binary transfer mode i get "script text executable/bin/php" only, the second file doesn't work using php as cgi, i get an internal server error, i know how to fix this but i'm wondering if anyone could explain why this happens on freebsd and if it's related to the ftp transfer -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"