Allocate aligned memory

2006-12-15 Thread Marc Lörner
Hello all, I want to allocate 120KB of memory thats aligned to 32KB. I already saw/found the function contigmalloc, now my question is, why following functioncall never does return with an resulting address, instead null is returned? unsigned long *p = (unsigned long*)

Re: Kernel hang on 6.x

2006-12-15 Thread Hans Petter Selasky
On Thursday 14 December 2006 20:05, Brian Dean wrote: Hi, We're experiencing a kernel hang on a 6.x quad processor Sun amd64 based system. We are able to reproduce it fairly reliably, but the environment to do so is not easily replicatable so I cannot provide a simple test case. However, I

Re: Allocate aligned memory

2006-12-15 Thread Suleiman Souhlal
Marc Lörner wrote: Hello all, I want to allocate 120KB of memory thats aligned to 32KB. I already saw/found the function contigmalloc, now my question is, why following functioncall never does return with an resulting address, instead null is returned? unsigned long *p = (unsigned long*)

Re: Allocate aligned memory

2006-12-15 Thread Hans Petter Selasky
On Friday 15 December 2006 09:50, Suleiman Souhlal wrote: Marc Lörner wrote: Hello all, I want to allocate 120KB of memory thats aligned to 32KB. I already saw/found the function contigmalloc, now my question is, why following functioncall never does return with an resulting address,

Re: Allocate aligned memory

2006-12-15 Thread Marc Lörner
On Friday 15 December 2006 10:19, Hans Petter Selasky wrote: ... My suggestion is to make the your high limit (currently 1 22) MUCH higher, if possible. Also, getting rid of the 1MB boundary might help. PS: contigmalloc is on the way out. Please use man bus_dma instead. For an example see:

Re: Capturing Parallel Port Data

2006-12-15 Thread Daniel O'Connor
On Friday 15 December 2006 05:32, Mr CW wrote: Now, my real question is: how do I read data from the parallel port on the FreeBSD computer that is coming from the tester which is trying to 'print' to the FBSD computer's parallel port? Is there a suggested pinout for a parallel crossover

Kernel Virtual Machine

2006-12-15 Thread Danny Braniss
sorry for the cross-posting, but not realy sure where this belongs. Linux just incorporated this, so I was wondering if anything along this lines is being done/concidered for FreeBSD? see: http://aplawrence.com/Linux/kvm_virtualization.html http://osdir.com/Article9554.phtml

GCC Pre-compiled headers

2006-12-15 Thread Florent Thoumie
I've seen that Roman asked about this few months ago but it seems nobody answered. Are there plans to support or people working on integrating gcc pre-compiled headers to buildworld/buildkernel? -- Florent Thoumie [EMAIL PROTECTED] FreeBSD Committer signature.asc Description: OpenPGP digital

Re: Syncing cpus on a multi-cpu, dual core system

2006-12-15 Thread Simon Roberts
- Original Message On a computational chemistry list I subscribe to there is a current thread about multi-cpu systems needing to have the cpu frequencies synced (this is in a Linux context). This is evidently not just having the cpus running at nominally the same frequency but

Re: Syncing cpus on a multi-cpu, dual core system

2006-12-15 Thread Joseph Koshy
frequency but something else in addition. A posting in the thread said variations less than 0.1% were not problematic. However, the poster said it was an issue in a dual cpu, dual core system he had set up. Why would application code care about CPU frequencies? Is it trying to measure its

Detecting buffer space with UDP.

2006-12-15 Thread David Gilbert
I'm using kqueue() with a EVFILT_WRITE to send udp packets over a gigabit interface (the job here is to stress test DNS servers). I'd like to send packets at wire rates, but somehow the EVFILT_WRITE is always triggered and I'm dropping a lot of packets on the floor. Is there a way (preferably

Re: Capturing Parallel Port Data

2006-12-15 Thread Mr CW
Thank you for the pointers. It sounds like reading data back from the parallel port is not a common thing to do, although I thought parallel port projects might have done this. Then I realized that most PIC programmers, parallel port displays, etc. usually only receive data, not send it back

Re: Capturing Parallel Port Data

2006-12-15 Thread soralx
No, I didn't try that but I certainly will now. I wasn't sure you could just cat the port and read the data back. I will let you know how this works. Well, you should certainly try it, but don't count on it: Daniel says that lpt returns only printer status (BTW, this means full 5 bits,

Re: Capturing Parallel Port Data

2006-12-15 Thread Daniel O'Connor
On Saturday 16 December 2006 10:24, Mr CW wrote: Thank you for the pointers. It sounds like reading data back from the parallel port is not a common thing to do, although I thought parallel port projects might have done this. Then I realized that most PIC programmers, parallel port displays,

Re: Detecting buffer space with UDP.

2006-12-15 Thread Adrian Chadd
Well, the FD will always be ready for write (and it can tell you how much data you -can- write as part of the message.) The standard way around it is to register w/ EV_ONESHOT and only get one event back when its ready for writing; but then you have to re-register after you've filled the TX

Configure error

2006-12-15 Thread Beech Rintoul
I'm the port maintainer for ftp/proftpd. I'm struggling with getting an upgrade out. The problem I'm having is they added a new option which requires libiconv. Autoconf looks for iconv.h, can't find it in /usr/local/include and the build errors out when it can't link. I googled the problem and

freebsd programming

2006-12-15 Thread Jai
Hi I am a student in Computer Science. I m moved * to FreeBSD from two year ago and enjoyed the power of BSD. But now I want to program it so that I customize it to get best results. I want to program it. I know shell programming, c programming. Is this knowledge is sufficient to program

Re: Configure error

2006-12-15 Thread Nikos Ntarmos
Hi there. On Fri, Dec 15, 2006 at 05:16:12PM -0900, Beech Rintoul wrote: I googled the problem and found that autoconf by default doesn't look in usr/local/include even if it's in the path. So, my question is what to put in the makefile or what to patch in the sources to make autoconf pick up

Re: freebsd programming

2006-12-15 Thread Max Laier
On Friday 15 December 2006 20:33, Jai wrote: I am a student in Computer Science. I m moved * to FreeBSD from two year ago and enjoyed the power of BSD. But now I want to program it so that I customize it to get best results. I want to program it. I know shell programming, c programming. Is

Re: Configure error

2006-12-15 Thread Beech Rintoul
On Friday 15 December 2006 18:14, Nikos Ntarmos wrote: Hi there. On Fri, Dec 15, 2006 at 05:16:12PM -0900, Beech Rintoul wrote: I googled the problem and found that autoconf by default doesn't look in usr/local/include even if it's in the path. So, my question is what to put in the