Re: iowait CPU state

2000-11-16 Thread Terry Lambert
I guess it might be useful to see the difference between "true" idle time and time the system couldn't do anything useful because it was blocked on the disk (but /should/ have done something useful...). You mean because the programmer didn't interleave their I/O, and wrote to a

Re: changing a running process's credentials

2000-11-16 Thread Stefan `Sec` Zehl
On Wed, Nov 15, 2000 at 06:02:22PM +0100, Peter Pentchev wrote: On Wed, Nov 15, 2000 at 08:47:22AM -0800, Alfred Perlstein wrote: * Peter Pentchev [EMAIL PROTECTED] [001115 06:19] wrote: As far as I can see, FreeBSD (nor any other Unix system I'm aware of) does not provide a way to do

Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Nicolai Petri
What's the best approach for a simple web-server(never more the 10 clients) ? Is it using pthread and a thread per connection . Or to make a non-blocking single thread server. Can people show me some simple examples of the 2 techniques ? And what's the pro's and con's for the 2 methods ??? ---

running lastest ggi demos on R4.1.1

2000-11-16 Thread Nicolas Souchu
Hi hackers, Has anyone been able to run the latest GGI stuff on a stable box? The port graphics/libggi is outdated. The problem seems to be when the execution enters the X library... There package is really easy-to-compile. Any X advanced user to give it a try? (gdb) core-file lt-demo.core

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Nicolai Petri
From: [EMAIL PROTECTED] On Thu, 16 Nov 2000, Nicolai Petri wrote: What's the best approach for a simple web-server(never more the 10 clients) Is it using pthread and a thread per connection . That is probably simplest from a programming point of view. That's sounds fine to me.. :o) Or

Re: iowait CPU state

2000-11-16 Thread Rik van Riel
On Thu, 16 Nov 2000, Terry Lambert wrote: Modern bloat-ware really pisses me off; I built the bind library the other day: the frigging thing was 4M, unstripped. How does this affect the (non?-)usefullness of the %iowait statistic? When you are waiting for I/O in a well written

make install world

2000-11-16 Thread Jamie Heckford
Hi, During make install world, I keep having it stop complaining "xxx Directory: Not Found" If i manually create this directorys with mkdir, and re-run make install world, it works fine, but then stops when it cant find a different directory. Is their any way I can have make install world or

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Alex Belits
On Thu, 16 Nov 2000, Nicolai Petri wrote: What's the best approach for a simple web-server(never more the 10 clients) ? Is it using pthread and a thread per connection . Or to make a non-blocking single thread server. Can people show me some simple examples of the 2 techniques ? And

Re: make install world

2000-11-16 Thread Johan Karlsson
Hi Are you actually using #make install world ??? I think you want #make installworld after you succesfully build the world using #make buildworld /Johan K At Thu, 16 Nov 2000 12:18:40 GMT, Jamie Heckford wrote: Hi, During make install world, I keep having it stop complaining "xxx

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Geoff Buckingham
On Thu, Nov 16, 2000 at 11:38:14AM +0100, Nicolai Petri wrote: What's the best approach for a simple web-server(never more the 10 clients) ? Is it using pthread and a thread per connection . Or to make a non-blocking single thread server. Can people show me some simple examples of the 2

Re: scheduler activations in FBSD5.0?

2000-11-16 Thread Daryl Chance
Is there a FreeBSD 5.0 Stable or is there only a current and stable reserved for the current release version (4.X). Thanks, - Daryl Chance | And which parallel universe did ValueData, LLC | YOU crawl out of? Memphis, TN| - http://www.thinkgeek.com - Original Message

Re: scheduler activations in FBSD5.0?

2000-11-16 Thread Pedro F Giffuni
http://people.FreeBSD.org/~jasone/kse/ On Thu, 16 Nov 2000, frank xu wrote: I heard rumor that Thomas E. Anderson's Scheduler Activations theory will be implemented in FreeBSD 5.0 kernel, is it true? Regards, XuYifeng

Sound card support

2000-11-16 Thread Jamie Heckford
Hi, I have an onboard sound card, and am trying to get it to work with FreeBSD. At boot, I have the following message: chip1: Intel 82801AA (ICH) AC'97 Audio Controller port 0xdc00-0xdc3f,0xd800-0x d8ff irq 5 at device 31.5 on pci0 And in my Kernel: # Sound device pcm This does

Re: Sound card support

2000-11-16 Thread Dimitar Peikov
http://www.katsurajima.seya.yokohama.jp/ich/ Have fun. It works fine for me! -- Dimitar Peikov Programmer Analyst "We Build e-Business" RILA Solutions 27 Building, Acad.G.Bonchev Str. 1113 Sofia, Bulgaria home: (+359 2) 595495 phone: (+359 2) 9797320 phone: (+359 2) 9797300 fax:

Re: scheduler activations in FBSD5.0?

2000-11-16 Thread Warner Losh
In message 001d01c04fdc$9e2e2e80$020a@mike "Daryl Chance" writes: : Is there a FreeBSD 5.0 Stable or is there only a current : and stable reserved for the current release version (4.X). STABLE is reserved for those branches that have had a release on them. Since there's been no 5.0 release

Re: scheduler activations in FBSD5.0?

2000-11-16 Thread Julian Elischer
frank xu wrote: I heard rumor that Thomas E. Anderson's Scheduler Activations theory will be implemented in FreeBSD 5.0 kernel, is it true? Basically the coming FreeBSD threading system will be based on the work by Anderson. It may have some different aspects too. I see someone already sent

FreeBSD VM

2000-11-16 Thread Raymond Law
majflt doesn't increase when a process is generating page faults. Instead, the swapper process (pid 0) gets all the page faults and it is the same as the page faults given by cnt in vmmeter.c. Why is this happening? Is there a way to get the number of page faults generated by a SINGLE

RTP as system calls.

2000-11-16 Thread Yonny Cardenas B.
Hello I want you to ask a favor. I'm incorporating the Real Time Transport Protocol(RTP) to FreeBSD Kernel. I want use the RTP Library API developed by Lucent http://www.cs.columbia.edu/~hgs/rtplib/rtplib-1.0a1/rtp_api.html First, I want try if this API can be add to Kernel as system calls.

New sound driver

2000-11-16 Thread Jamie Heckford
Hi, I tried to get my onboard intel AC'97 card to work, and used a third party driver to get success (written by Katsurajima Naoto) The following card is: pcm0: Intel 82801AA AC'97 audio port 0xdc00-0xdc3f,0xd800-0xd8ff irq 5 at device 31.5 on pci0 This wasn't supported by FreeBSD first off,

Re: changing a running process's credentials

2000-11-16 Thread void
Does anyone remember the article in Phrack, issue 53 I think, about speaking Forth to a Sun's boot-prom in order to write a '0' into the UID member of one's shell's struct proc? -- Ben 220 go.ahead.make.my.day ESMTP Postfix To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: changing a running process's credentials

2000-11-16 Thread David Scheidt
On Thu, 16 Nov 2000, void wrote: :Does anyone remember the article in Phrack, issue 53 I think, about :speaking Forth to a Sun's boot-prom in order to write a '0' into the UID :member of one's shell's struct proc? Yes. It works a treat. Similar steps let you do the same thing with DDB or

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Alfred Perlstein
* Nicolai Petri [EMAIL PROTECTED] [001116 02:37] wrote: What's the best approach for a simple web-server(never more the 10 clients) ? Is it using pthread and a thread per connection . Or to make a non-blocking single thread server. Can people show me some simple examples of the 2 techniques ?

Re: More detail on Deskpro XL6200 NIC (was: Legacy ethernet cards in FreeBSD)

2000-11-16 Thread Bill Paul
[Charset iso-8859-1 unsupported, filtering to ASCII...] Dear Bill, others, I've been working on getting my Deskpros to use their NIC under 4.2, but no luck. The problem is as follows: I installed 4.0, and the NIC came up under the lnc driver, reports its MAC address and works fine. [...]

Resolution

2000-11-16 Thread Jamie Heckford
How would i go about changing the resolution of my vt?? Im fed up with the 320 x X mode it uses, and want to maybe get it up to 1024x768. Any ideas anyone? Thanks, -- Jamie Heckford Chief Network Engineer Psi-Domain - Innovative Linux Solutions. Ask Us How.

Re: Resolution

2000-11-16 Thread Dan Nelson
In the last episode (Nov 16), Jamie Heckford said: How would i go about changing the resolution of my vt?? Im fed up with the 320 x X mode it uses, and want to maybe get it up to 1024x768. Console screens aren't pixel-based; they're character-cell based. The default console is 80x25, which

Re: RTP as system calls.

2000-11-16 Thread Daniel C. Sobral
"Yonny Cardenas B." wrote: I have some questions: 1) Can I call functions level's user into kernel, as socket() or calloc() ? No. 2) How must I use the global variable "errno" for value returned for system calls ? Is sufficient with #include sys/errno.h ? You are not calling system

Re: PPPoE w/ nat auto fragmentation hack? (use tcpmssd port)

2000-11-16 Thread Brian Somers
ppp will run programs as the user id that invoked ppp rather than using the effective user id (ie, it runs things as *you*, not *root*). Mmm-mmh. In my case, since ppp is started at boot time, the only user that ever invokes it is root, hence the tcpmssd thingy is run as root. As

compiling X apps

2000-11-16 Thread Jamie Heckford
Very sorry for posting such a dumb question, but since I cvs'upd something weird seems to have happened. I am using this to compile my X app (which just uses Xlib.h at the mo) gcc -L/usr/X11R6/include -o test test.cc but it cannot locate Xlib.h?!! Any suggestions? Thanks. -- Jamie Heckford

Re: compiling X apps

2000-11-16 Thread Brian Reichert
On Thu, Nov 16, 2000 at 09:47:51PM +, Jamie Heckford wrote: Very sorry for posting such a dumb question, but since I cvs'upd something weird seems to have happened. I am using this to compile my X app (which just uses Xlib.h at the mo) gcc -L/usr/X11R6/include -o test test.cc

Re: compiling X apps

2000-11-16 Thread Alex Belits
On Thu, 16 Nov 2000, Jamie Heckford wrote: Very sorry for posting such a dumb question, but since I cvs'upd something weird seems to have happened. I am using this to compile my X app (which just uses Xlib.h at the mo) gcc -L/usr/X11R6/include -o test test.cc but it cannot locate

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Bakul Shah
What's the best approach for a simple web-server(never more the 10 clients) ? Is it using pthread and a thread per connection . Or to make a non-blocking single thread server. Can people show me some simple examples of the 2 techniques ? And what's the pro's and con's for the 2 methods ???

Re: iowait CPU state

2000-11-16 Thread Rik van Riel
On Thu, 16 Nov 2000, Terry Lambert wrote: Ummm, how about a situation where you have a steadily increasing work load (more customers?) and want to have decent statistics of your servers to determine exactly what parts to upgrade and/or if you need to put extra machines into service?

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread FengYue
On Thu, 16 Nov 2000, Bakul Shah wrote: -The simplest solution is to just fork a new process on -accepting a new connection. A sample implementation is why not just bind to the port and then spawn off some processes (like 20 in his case) to do the accept(), once the accept() returns

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Bakul Shah
why not just bind to the port and then spawn off some processes (like 20 in his case) to do the accept(), once the accept() returns successfully just take care of the request, close the connection and then goes back to accept(). Simple, easy, and even scales pretty well. Since it's

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread FengYue
On Thu, 16 Nov 2000, Bakul Shah wrote: -Yes, this is definitely simpler and preferable when servicing -a small number of concurrent requests. But you have to spawn -off as many processes as the worst case number of concurrent -requests you want to service since while all the processes -are

Re: Multithreaded tcp-server or non-blocking ?

2000-11-16 Thread Alfred Perlstein
* FengYue [EMAIL PROTECTED] [001116 16:15] wrote: On Thu, 16 Nov 2000, Bakul Shah wrote: -Yes, this is definitely simpler and preferable when servicing -a small number of concurrent requests. But you have to spawn -off as many processes as the worst case number of concurrent -requests

new kld style

2000-11-16 Thread Mark Santcroos
Hi, While implementing a module based on /usr/share/examples/cdev??? I noticed that after loading it I get a warning that originates from kern/kern_linker.c telling me that I'm using the old kld style. [This all on -CURRENT] Can you please point me to the right direction for the "new" style. Or

Re: looking for kernel hacking info

2000-11-16 Thread Wes Peters
Paonia Ezrine wrote: On Tuesday, 14 November 2000 at 16:32:49 -0500, Paonia Ezrine wrote: I am looking for info on programing in kernel land. System calls, howto's etc. I have not found anything that realy covers this stuff any and all help would be welcomed! The system calls are

Re: looking for kernel hacking info

2000-11-16 Thread Wes Peters
Greg Lehey wrote: On Wednesday, 15 November 2000 at 10:08:45 +, visi0n wrote: The THC have a documentation about freebsd kernel space. packetstorm.securify.com/groups/thc/bsdkern.htm Repeating the full URL for the benefit of mutt users, this is

Re: ntop, worlds greatest network monitor, no go on FreeBSD (fwd)

2000-11-16 Thread Stanley Hopcroft
-- Forwarded message -- Date: Thu, 16 Nov 2000 17:20:11 -0800 (PST) From: FengYue [EMAIL PROTECTED] To: Stanley Hopcroft [EMAIL PROTECTED] Subject: Re: ntop, worlds greatest network monitor, no go on FreeBSD you may consider copying this message to [EMAIL PROTECTED] On Thu, 16

Re: compiling X apps

2000-11-16 Thread Kris Kennaway
On Thu, Nov 16, 2000 at 09:47:51PM +, Jamie Heckford wrote: Very sorry for posting such a dumb question, but since I cvs'upd something weird seems to have happened. I am using this to compile my X app (which just uses Xlib.h at the mo) gcc -L/usr/X11R6/include -o test test.cc but