Re: squid and freebsd configuration

2005-06-03 Thread iwan
I read the squid log file and I think no problem with it, its normal. I try to fetch something on internet i.e google.com, I found that my proxy goes well, and I think it is slow. Must I setting my box with ipf or ipfw ?? I use freebsd 5.3-release and squid v. 2.5-STABLE10 Thx. On Fri, 3 Jun

Re: squid and freebsd configuration

2005-06-03 Thread Daniel O'Connor
On Fri, 3 Jun 2005 16:50, [EMAIL PROTECTED] wrote: I read the squid log file and I think no problem with it, its normal. I try to fetch something on internet i.e google.com, I found that my proxy goes well, and I think it is slow. I don't understand what you mean here.. Is it too slow? How are

Re: squid and freebsd configuration

2005-06-03 Thread iwan
I don't understand what you mean here.. Is it too slow? How are you testing it? I fetch to google.com, and I receive message that I get some bytes from there more about 25 seconds. Is it slow to transfer bulk data, or to do individual connections? I dont know about that data. Is your DNS

Re: squid and freebsd configuration

2005-06-03 Thread Daniel O'Connor
On Fri, 3 Jun 2005 17:15, [EMAIL PROTECTED] wrote: I don't understand what you mean here.. Is it too slow? How are you testing it? I fetch to google.com, and I receive message that I get some bytes from there more about 25 seconds. I suspect squid can't look up the IP of machines in your

How FREEBSD deals with request for continuous physical pages

2005-06-03 Thread Bao Zhao
Linux use buddy allocator.but I find it seems that FREEBSD uses single page linked list. but SLAB and some drivers need continuous physical pages, so I wonder how FREEBSD solved this problem. Best Regards, Bao Zhao __ Do You Yahoo!? Tired of

using vkbd device

2005-06-03 Thread Norbert Koch
Hello, I am trying to use vkbd to multiplex an at keyboard and an usb keyboard into syscons. Vkbd's control device's write routine expects ints to queue to the slave device. As I understand, those ints map 1:1 to the chars I read from a keyboard device, right? So I open, for example, /dev/kbd0,

O_NONBLOCK vs IO_NDELAY: what to use where?

2005-06-03 Thread Norbert Koch
Hello. In releng-4 the device driver's read/write functions check for non-blocking i/o using (flag IO_NDELAY) Is that changed in current to O_NONBLOCK? As I understand: #include vnode.h IO_NDELAY for releng-4 and #include fcntl.h O_NONBLOCK for current. Correct? If yes, what exact version

cc1: internal compiler error: Abort trap: 6

2005-06-03 Thread Singh, Vijay
Hello, while doing a make buildkernel on a FreeBSD 6.0 system, I get a compile failure in pf (depend): === pf (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include echo #define DEV_PF 1 opt_pf.h echo #define DEV_PFLOG 1 opt_pf.h echo #define INET 1 opt_inet.h echo #define INET6 1

Re: cc1: internal compiler error: Abort trap: 6

2005-06-03 Thread Divacky Roman
On Thu, Jun 02, 2005 at 03:59:35PM -0700, Singh, Vijay wrote: Hello, while doing a make buildkernel on a FreeBSD 6.0 system, I get a compile failure in pf (depend): === pf (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include echo #define DEV_PF 1 opt_pf.h echo #define DEV_PFLOG

Re: How FREEBSD deals with request for continuous physical pages

2005-06-03 Thread Divacky Roman
On Fri, Jun 03, 2005 at 02:15:19AM -0700, Bao Zhao wrote: Linux use buddy allocator.but I find it seems that FREEBSD uses single page linked list. but SLAB and some drivers need continuous physical pages, so I wonder how FREEBSD solved this problem. man contigmalloc

synchronization question about /sys/dev/vkbd/vkbd.c

2005-06-03 Thread Norbert Koch
Hello. When looking at /sys/dev/vkbd/vkbd.c I found one thing, that I do not understand. There are three places, where a flag TASK is used: 1. in vkbd_dev_close(): while(state-ks_flag TASK) VKBD_SLEEP (...); 2. in vkbd_dev_write() VKBD_LOCK (); ... if (!(state-ks_flags TASK)

Re: cc1: internal compiler error: Abort trap: 6

2005-06-03 Thread Joseph Koshy
vijay Is this a known issue? How can I get around this? Likely causes include flaky RAM, overclocking and CPU overheating. Did the machine get through a full buildworld cycle previously? You can check your CPU temperature with 'mbmon'. roman gcc has just been upgraded to 3.4.4 so I expect a

Re: using vkbd device

2005-06-03 Thread Maksim Yevmenkin
Norbert, I am trying to use vkbd to multiplex an at keyboard and an usb keyboard into syscons. ok Vkbd's control device's write routine expects ints to queue to the slave device. correct As I understand, those ints map 1:1 to the chars I read from a keyboard device, right? yes, the

NMI handlers ??

2005-06-03 Thread Dipjyoti Saikia
Hi, I am working on IPMI watchdog implementation . The problem that I am facing is that in case of improper system shutdown or powerfail the watchdog keeps running and the next time system boots up , BIOS complains of FRB2 timeout and fails one of the CPU's ( Working on SMP system ) . My idea

Re: synchronization question about /sys/dev/vkbd/vkbd.c

2005-06-03 Thread Maksim Yevmenkin
Norbert, When looking at /sys/dev/vkbd/vkbd.c I found one thing, that I do not understand. There are three places, where a flag TASK is used: 1. in vkbd_dev_close(): while(state-ks_flag TASK) VKBD_SLEEP (...); 2. in vkbd_dev_write() VKBD_LOCK (); ... if (!(state-ks_flags TASK)

Re: cc1: internal compiler error: Abort trap: 6

2005-06-03 Thread Kris Kennaway
On Thu, Jun 02, 2005 at 03:59:35PM -0700, Singh, Vijay wrote: Hello, while doing a make buildkernel on a FreeBSD 6.0 system, I get a compile failure in pf (depend): === pf (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include echo #define DEV_PF 1 opt_pf.h echo #define DEV_PFLOG

Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Matthew Dillon
I've been tracking down a crash one of our users gets occassionally. He has a quad Intel(R) XEON(TM) CPU 2.00GHz (1996.61-MHz 686-class CPU) system. After getting a few of these crashes he pulled three of the four cpus out. But with just one physical cpu, with HTT turned on

Re: NMI handlers ??

2005-06-03 Thread Brian Fundakowski Feldman
On Fri, Jun 03, 2005 at 10:48:04PM +0530, Dipjyoti Saikia wrote: Hi, I am working on IPMI watchdog implementation . The problem that I am facing is that in case of improper system shutdown or powerfail the watchdog keeps running and the next time system boots up , BIOS complains of FRB2

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Colin Percival
Matthew Dillon wrote: I'm even more confused because this bug is occuring between two logical cpus on the same physical die. Is write ordering not guarenteed with respect to the other logical cpu? Can one logical cpu prefetch data early then then becomes obsolete by the time

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Stephan Uphoff
On Fri, 2005-06-03 at 16:57, Matthew Dillon wrote: I've been tracking down a crash one of our users gets occassionally. He has a quad Intel(R) XEON(TM) CPU 2.00GHz (1996.61-MHz 686-class CPU) system. After getting a few of these crashes he pulled three of the four cpus

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Matthew Dillon
:This is normal behaviour. :Take a look at IA-32 Intel Developers ... Vol 3, :Section: 7.2.2 for details + solutions. : :Stephan Ok.. that section seems to indicate that speculative reads can pass writes, but it also says that the pipeline sniffs the address within the processor

Fork mystries....

2005-06-03 Thread Aziz Kezzou
Hi all, It's probably not the right mailing list to ask but I am really surprised about global variable sharing in a multithreaded C application. If I remember well my multithreading course global variables are shared between threads, right ? Example : int counter =

Re: Fork mystries....

2005-06-03 Thread Joerg Sonnenberger
On Fri, Jun 03, 2005 at 07:55:29PM -0400, Aziz Kezzou wrote: It's probably not the right mailing list to ask but I am really surprised about global variable sharing in a multithreaded C application. If I remember well my multithreading course global variables are shared between threads, right

Re: Fork mystries....

2005-06-03 Thread Daniel Eischen
On Fri, 3 Jun 2005, Aziz Kezzou wrote: Hi all, It's probably not the right mailing list to ask but I am really surprised about global variable sharing in a multithreaded C application. If I remember well my multithreading course global variables are shared between threads, right ? Uhh,

Re: Fork mystries....

2005-06-03 Thread Julian Elischer
Aziz Kezzou wrote: Hi all, It's probably not the right mailing list to ask but I am really surprised about global variable sharing in a multithreaded C application. If I remember well my multithreading course global variables are shared between threads, right ? fork() is not a threading

Re: Fork mystries....

2005-06-03 Thread ray
Aziz, Fork is for process creation. Look up pthread_create() and/or POSIX thread creation, etc. You should be able to find a lot of info on google with a quick search: http://math.arizona.edu/~swig/documentation/pthreads/ From the OS standpoint a process is like a different program when

Re: a error about the kern_sendit

2005-06-03 Thread Julian Elischer
shiner chen wrote: i wrote a function to send the data of my a data structure in my kld by socket in kernel, the function as follow: the arg 1 is file descriptor of socket. the arg 2 is the address of data structure. the arg 3 is the length of data structure and it is 20 bytes . the

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread John-Mark Gurney
Matthew Dillon wrote this message on Fri, Jun 03, 2005 at 13:57 -0700: I've been tracking down a crash one of our users gets occassionally. He has a quad Intel(R) XEON(TM) CPU 2.00GHz (1996.61-MHz 686-class CPU) system. After getting a few of these crashes he pulled three of

how to active the received function when the data arrived the socket in kld !

2005-06-03 Thread shiner chen
Inorder to impliment the dynamic load freeback policy ,I wrote a kld on the front-end of cluster server for collecting the load of back nodes. I don't want the acceptive thread to detect the data arrived socket continuously,because ,which will affect the performance of the front-end.i want to

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Stephan Uphoff
On Fri, 2005-06-03 at 18:47, Matthew Dillon wrote: :This is normal behaviour. :Take a look at IA-32 Intel Developers ... Vol 3, :Section: 7.2.2 for details + solutions. : :Stephan Ok.. that section seems to indicate that speculative reads can pass writes, but it also says that

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Matthew Dillon
:have you put a SFENCE between write A and write B? You never tell us :where you've tried to put the various fence instructions... : :-- : John-Mark Gurney Voice: +1 415 225 5579 No, I haven't tried doing that because both the AMD and Intel manuals make it

HEADS UP! 6.0 Schedule, 6.0-CURRENT Snapshot

2005-06-03 Thread Scott Long
All, The long anticipated and much feared 6.0 code freeze is about to begin! I'll cut to the chase: June 10 - Feature freeze + code slush ^^^ July 10 - RELENG_6 branch August 1 - RELENG_6_0 branch August 15 - 6.0-RELEASE From June 10 until the release, the number one priority is

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread Scott Long
Matthew Dillon wrote: [...] It seems so unlikely that this could occur across physical cpus that I was not surprised at all by this. But 16 instructions seemed unlikely to me. The only scenario I can come up with is that the READ SIDE on the HT cpu (logical cpu #1) did a