Re: malloc

2002-10-21 Thread Terry Lambert
Danny Braniss wrote: > > What a lame program... > > > > If this program is indicative of your real-world work-load, you can > > optimize a lot by getting better programmers. > > > > If it is not indicative, then forget about it. > > i wish i could :-) This is a memory overcommit architecture. If

Re: malloc

2002-10-21 Thread Danny Braniss
> What a lame program... > > If this program is indicative of your real-world work-load, you can > optimize a lot by getting better programmers. > > If it is not indicative, then forget about it. i wish i could :-) danny To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscri

Re: 5.0-RUSH: -current install testers wanted!

2002-10-21 Thread Terry Lambert
Poul-Henning Kamp wrote: > I want as many people as possible to beat up on sysinstall as much as > they can. > > And I want them to do it RSN: 5.0-R is only 9 days away. > > Please try to be creative in the choices you make in sysinstall, we > don't need 20 people all testing ftp-passive, we need

Re: Scheduling a recurring task in a device driver

2002-10-21 Thread Terry Lambert
"M. Warner Losh" wrote: > In message: <[EMAIL PROTECTED]> > Luigi Rizzo <[EMAIL PROTECTED]> writes: > : a timeout() call will do (at most once per tick). grep for "timeout(" > : in most of device drivers to see how to use it. > > Also, A software interrupt would be good too, depending

5.0-RUSH: -current install testers wanted!

2002-10-21 Thread Poul-Henning Kamp
I built a "make release" overnight and I managed to install from it by copying the boot.flp image to a ZIP disk, selecting Minimum and FTP passive. So far so good. But we all know that sysintall has a few more bells and whistles than that, so NOW is the TIME of all good men to come to the aid of

Re: IP resolving

2002-10-21 Thread Scott Carmichael
> You never said if you are using TCP wrappers. Can you show us the > actual output from the machine? What do, Yes, I guess I am now, but the problem existed before as well. The TCP wrapper is just whatever is enabled by configuring /etc/hosts.allow. In the following, 'andrew' is the account that

Re: PThreads problem

2002-10-21 Thread Peter Pentchev
On Mon, Oct 21, 2002 at 10:31:48PM +0200, Linus Kendall wrote: [snip] > > That was very thorough, thanks! Now I at least have a notion of what > is going on. Since this is slightly urgent I guess a hack into the > libcurl source code to try to remove the sigalarms would do the trick > (in my case

Re: Scheduling a recurring task in a device driver

2002-10-21 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Luigi Rizzo <[EMAIL PROTECTED]> writes: : On Mon, Oct 21, 2002 at 09:20:52AM -0700, David Christensen wrote: : > A device driver I'm porting from Linux uses tasklets to schedule a : > recurring : > event to work around a hardware bug. What would be the e

Re: vmware2 and simd instructions

2002-10-21 Thread soralx
> From what I have gathered doing web seaches, the cpuid opcode is *not* > trappable. :( What's the problem then? The guest OS should get proper info from the CPUID instruction. Can you test that? What does CPU info program show about the CPU in a guest OS? The problem is in VMWare - it has some w

Kernel Panic Problems

2002-10-21 Thread Diego Wentz Antunes
Hi Guys, I have been experiencing several kernel panics from differents situations, since a ls to just boot the kernel. I configured all the options in rc.conf to save the core dump from memory to HD and some of the results are here in the file panics. Above all I search at internet some

Re: vmware3, any one got even sorta working?

2002-10-21 Thread wolf
what the requirements for the people to do the work? Josef Karthauser wrote: > On Fri, Oct 18, 2002 at 09:41:58PM -0400, wolf wrote: > >>I have search the web trying to find info on vmware3 and FreeBSD as the >>host os. >> >>I noticed a post where someone said they got the modules working, but >>

Re: PThreads problem

2002-10-21 Thread Peter Pentchev
On Mon, Oct 21, 2002 at 04:48:34PM +0300, Peter Pentchev wrote: > On Mon, Oct 21, 2002 at 03:24:08PM +0200, Linus Kendall wrote: > > m?n 2002-10-21 klockan 14.45 skrev Peter Pentchev: > > > On Mon, Oct 21, 2002 at 01:35:59PM +0200, Linus Kendall wrote: > > > > Hi, > > > > > > > > I'm trying to por

Re: Ati Rage 128: Dpms suspend failes

2002-10-21 Thread Andrew Gallatin
Eric Anholt writes: > On Mon, 2002-10-21 at 08:16, Hanspeter Roth wrote: > > Hello, > > > > I have two hosts connected to one monitor. My idea is attach the > > display to the other host by issuing `xset dpms force suspend'. > > This works on one host with a Matrox Millenium. > > On the ho

Re: malloc

2002-10-21 Thread Kris Kennaway
On Mon, Oct 21, 2002 at 11:25:43AM +0200, Danny Braniss wrote: > comments? That code is a REALLY inefficient use of malloc(). You can always write bizarre code that exaggerates the differences between different algorithms (e.g. Linux malloc vs FreeBSD malloc). Kris msg37495/pgp0.pgp Desc

SMP and race conditions.

2002-10-21 Thread Pawel Jakub Dawidek
Hello hackers... We got for example a kld module and we have catched some syscall. Now we want to change effective uid of process, but not curproc. How to lock this process? struct proc *proc; uid_t olduid; [...] if ((proc = pfind(123)) == NULL) ret

Re: PThreads problem

2002-10-21 Thread Terry Lambert
Linus Kendall wrote: > That was very thorough, thanks! Now I at least have a notion of what > is going on. Since this is slightly urgent I guess a hack into the > libcurl source code to try to remove the sigalarms would do the trick > (in my case). In the general case it seems like there's a rather

Re: Kernel Panic Problems

2002-10-21 Thread Terry Lambert
Diego Wentz Antunes wrote: > >> I have been experiencing several kernel panics from differents > >> situations, since a ls to just boot the kernel. > >> I configured all the options in rc.conf to save the core dump from > >> memory to HD and some of the results are > >> here in the file panics

Re: IP resolving

2002-10-21 Thread Crist J. Clark
On Mon, Oct 21, 2002 at 12:19:03AM -0600, Scott Carmichael wrote: > Netstat reports properly... > > I think the issue is that an 'nslookup [ip]' will resolve to a host where > an 'nslookup [host]' will not resolve to [ip]. Its the way the DNS on the > other end is set up, but I can't exactly chang

Re: Ati Rage 128: Dpms suspend failes

2002-10-21 Thread Hanspeter Roth
On Oct 21 at 15:10, Andrew Gallatin spoke: > > Eric Anholt writes: > > You need XFree86-Server-4.2.1_4 or later (it's at _5 now). > > > > I'm running 4.2.1_4 and dpms does not work for me. > > I just grabbed some diffs from the Xfree86 cvs to bring > drivers/ati/r128_driver.c up to 1.57.2.

Re: Kernel Panic Problems

2002-10-21 Thread Diego Wentz Antunes
Sorry for that. Diego Wentz Antunes wrote: I have been experiencing several kernel panics from differents situations, since a ls to just boot the kernel. I configured all the options in rc.conf to save the core dump from memory to HD and some of the results are here in the file panics. Ab

Re: PThreads problem

2002-10-21 Thread Linus Kendall
mån 2002-10-21 klockan 21.44 skrev Peter Pentchev: > On Mon, Oct 21, 2002 at 06:33:46PM +0200, Linus Kendall wrote: > > Answer inline below. > > > > m?n 2002-10-21 klockan 15.50 skrev Peter Pentchev: > > > On Mon, Oct 21, 2002 at 04:48:34PM +0300, Peter Pentchev wrote: > > > > On Mon, Oct 21, 2002

Ati Rage 128: Dpms suspend failes

2002-10-21 Thread Hanspeter Roth
Hello, I have two hosts connected to one monitor. My idea is attach the display to the other host by issuing `xset dpms force suspend'. This works on one host with a Matrox Millenium. On the host with an Ati Rage 128 Pro TF it works with Netbsd, but it doesn't work with FreeBSD 4.7-Release. The sc

Scheduling a recurring task in a device driver

2002-10-21 Thread David Christensen
A device driver I'm porting from Linux uses tasklets to schedule a recurring event to work around a hardware bug. What would be the equivalent in FreeBSD? David Christensen To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: PThreads problem

2002-10-21 Thread Daniel Eischen
On Mon, 21 Oct 2002, Peter Pentchev wrote: > Okay, I can see what the problem is; however, I have absolutely no idea > how it is to be solved :( > > The DNS resolution routines of libcurl use alarm() as a timeout > mechanism for the system DNS resolving functions. To enforce the > timeout even wh