Re: Panics when using Mylex RAID with SMP under RELENG_4

2000-05-02 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: I am trying to run a Mylex Acceleraid 1100 in a Dell Poweredge 2450. What is a Dell Poweredge 2450, in terms of chipset and processors? When running rawio against the mylex partition, the system panics within 2 minutes, always with a

Re: NEWBUS: multiple calls needed?

2001-01-26 Thread Drew Eckhardt
In message [EMAIL PROTECTED], rh@m atriplex.com writes: I think I will just go ahead with allocating three separate resources for them, but I would be very interested in other opinions. The different regions on a device often have different functionality which may allow/call for different

Re: EBCDIC - ASCII

2001-01-29 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] write s: Does anybody know of an EBCDIC to ASCII converter? I thought that at one time FreeBSD had one of these. This is a standard dd(1) feature. More specifically, you want to use the conv=ascii option. To Unsubscribe: send mail to [EMAIL

Suboptimal mmap of devices on i86

2001-01-29 Thread Drew Eckhardt
On i86 boxes with 4M page capabilities, we want contiguous chunks of physical address space for mmaped devices to use those larger pages when possible. In practice, this doesn't happen in applications linked with shared libraries when mmap() is used in the usual way with 0 as the address

Re: strace

2001-02-02 Thread Drew Eckhardt
In message [EMAIL PROTECTED], m [EMAIL PROTECTED] writes: Is there strace for FreeBSD? There's truss(1) and ktrace(1). -- a href="http://www.poohsticks.org/drew/"Home Page/a For those who do, no explanation is necessary. For those who don't, no explanation is possible. To Unsubscribe: send

Re: why isn't /usr/include/sys/syscall.h generated by makesyscalls?

2001-02-05 Thread Drew Eckhardt
In message [EMAIL PROTECTED], Jochen.Kaiser@rr ze.uni-erlangen.de writes: hi , i am trying to play with some statistics on ip protocols. I'd like to implement a syscall for some funcions and I wonder why sh sr/src/sys/kern/makesyscalls.sh syscalls.master updates files in /usr/src/sys/kern/

Re: Kernel editing tools.

2001-02-07 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Hey everyone, Sorry if you have heard this before, or if it is annoying. I just can't seem to find any information on this. I have been poking around my kernel for quite some time now, and I have been doing it with various text editors and

Re: character device driver

2001-02-18 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writ es: Hi, I'm writing a character device driver in which each minor device can be opened more than once. When a device is opened is there a way to associate some private data for each opened instance ? As other people have noted, not in the

Re: postfix: No buffer space available

2001-02-20 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: You might want to try setting net.inet.tcp.sendspace net.inet.tcp.recvspace to larger values. I have these in my /etc/sysctl.conf. These control the default socket buffer size. Assuming postfix is not setting the

Re: gdb and debugging Linux binaries

2001-02-23 Thread Drew Eckhardt
You may be able to force gdb to pick up the right files using the add-symbol-file command. Or the sharedlibrary command. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Is mkdir guaranteed to be 'atomic' ??

2001-02-26 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes : is mkdir(3) guaranteed to be atomic? Yes. Are there filesystem type cases where this might not be the case (NFS being my main concern ) No. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in

Re: [hackers] Re: Setting memory allocators for library functions.

2001-02-27 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: In most cases it is impossible to declare the data read-only because it originally had to be read-write and you can't change its attributes later. mprotect(2). To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: fixing flex definitions?

2001-03-05 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes : Would this be an ok fix? I'm worried about the YY_PROTO() messing things up anyone know what the point of doing it this way is? Compatability with pre-ANSI 'C' compilers, just like __P from /usr/include/sys/cdefs.h. To Unsubscribe: send

Re: atexit

2001-03-09 Thread Drew Eckhardt
In message [EMAIL PROTECTED], mjl@SD SC.EDU writes: I take it that the cleanup function won't be called if the program dumps core, Right, unless you dump core by forking a child process and doing it in that context. or if it is terminated with a kill(1) The function can never be called when

Re: SCSI-over-* hacks

2001-03-20 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: - the Linux SCSI generic device (/dev/sg*)? We already have a far superior mechanism (/dev/pass*) FWIW, The Linux /dev/sg was implemented as a simple way to send SCSI commands to media changer robots in an MO drive library for a

Re: Good server motherboard?

2001-03-27 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] m writes: Will the machine boot off of the second drive if the first one fails? It depends on how you define "fail". With a hardware failure or no 0x55 0xaa in the boot block, many BIOSes will fail over. At least one company has hacked their

Re: header files for sockets

2001-03-28 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] m writes: the header files they tell you to include are no longer correct. The header files are pretty much standard. So what I would like to know is the header files I will need to include to work with sockets. If that is not specific enough,

Re: Writing to a file in the kernel

2001-03-30 Thread Drew Eckhardt
In message 002d01c0b924$a07d2090$8d7d1f26@dhgfhcpps5nhe1, [EMAIL PROTECTED] w rites: The problem is that printf's scroll off the screen. How can I write to a file? syslogd(8)/syslog.conf(5). Also note that by default, on must unices the stock /etc/syslog.conf sends kernel messages to

Re: Question regarding the array of size 0.

2001-03-30 Thread Drew Eckhardt
In message Pine.3.89.10103300924.A22782-010@umbar, [EMAIL PROTECTED] r.org writes: which all begs the question... what is the point of an array of size zero? To allow you to do variable length arrays at the end of structures in a portable (C99) or semi-portable (gcc) way struct

Re: if_fxp - the real point

2001-03-30 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] m writes: And lets face it. If MS had a good product, they would have a much larger market share and linux would be a non-issue. MS just makes shitty stuff. Its not about "open source". Directly, it isn't. Indirectly, it is. its about how well

Re: stack/memory usage in kernel related question

2001-04-04 Thread Drew Eckhardt
On Wed, 04 Apr 2001 14:12:00 EDT, Amy Fong [EMAIL PROTECTED] wrote: Query: I've noticed that if I use up too much stack space, the freebsd kernel (4.2) seems to crash very easily. Single page sized kernel stacks aren't uncommon (I don't recall what FreeBSD uses, but have found the "it's small,

Re: BSDI and Marketing 101

2001-04-26 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: I saw BSDIs retail product of FreeBSD in a local bookstore the other day, and it became sadly clear why LINUX, although highly inferior, is so much more widely used. Linux was much more widely used because the Jolitzes felt their i86

Re: Query: How to tell if Microsoft is using BSD TCP/IP code?

2001-06-16 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Doesn't any one remember Netiquette these days and trim what they are replying to?? No. Every month is September. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: processes private data

2001-06-28 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Hi folks, I have a char driver that must be opened by more than one process. The minor index is not sufficient for this. Is there any process private data (void *) in the devfs structure (or the opposite) I could point to with the minor

Re: allocating user space memory from kernel mode

2001-06-28 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] w rites: Hello, is it possible to allocate and then maybe free memory in user space from kernel mode, if I have struct proc of the process that memory should belong to ? Yes. What is the easiest and safest method of doing this ? Probably

Re: TCP Window Size

2001-07-10 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: I'd personally suggest just tuning net.inet.tcp.*space to 64k at most. 1. Depends on your application. To avoid TCP window size related slowdowns, it needs to be at least as large as the bandwidth delay product (multiply bandwidth

Re: Network performance tuning.

2001-07-12 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] ane.com writes: This is fairly easy to do for the transmit side of things and would yield an immediate improvement in available mbuf space. For the receive side of things we can't really do anything with existing connections

Re: Some questions about kernel programming

2001-07-13 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] w rites: ch = fubyte(uaddr); And one more question, does this mean that I can't use things x = *uaddr and *uaddr = x for userspace, but always have to use fubyte() and subyte () ? Right. If so, what is the reason it was done like

Interrupt threads

2000-11-21 Thread Drew Eckhardt
For reasons beyond my control, I'm stuck using FreeBSD in a real time system and am violating my timing constraints when too many SCSI commands complete in a short time frame and starve one of my userland real time processes. If the interrupt handler wokeup a kernel thread running at a lower

Re: sudo [was: Re: your mail]

2000-12-06 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: David Talkington wrote: sudo definitely helps if it's carefully administered, but it still grants root access to a file, This is wrong -- sudo will grant access with whatever user privileges you wish to grant, maybe root and maybe some

Re: syscall assembly

2000-12-13 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: In message [EMAIL PROTECTED] Marc Tar dif writes: : So why is %esp displaced by 16 bytes when only 8 bytes : are necessary (4 for $0 and 4 for $.LC0)? And couldn't : the compiler use a single instruction such as : subl $16,%esp or addl

Re: syscall assembly

2000-12-13 Thread Drew Eckhardt
In message [EMAIL PROTECTED], intmktg@ CAM.ORG writes: Perhaps, but no matter the degree of optimisation, the 16 byte of space is performed in two instructions. This leads me to believe is it most likely a pipelining issue for the following pushl instructions. As for subl'ing and addl'ing 8 bytes

Re: syscall assembly

2000-12-13 Thread Drew Eckhardt
drew writes: My best guess (if it isn't a bug) would be that it's there to keep the stack on a 32 byte (IIRC, this sounds like cache line size for the newer Intel chips) This discussion piqued my curiosity, so I popped up the Pentium III optomization manual. To quote it: On Pentium II

Re: Why not another style thread? (was Re: cvs commit: src/lib/libc/gen getgrent.c)

2000-12-18 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: /* Case 1 */ /* Case 2 */ if (data) vs. free(data) free(data); I don't see that Case 1 obfuscates anything. In some cases I find it clearer: Case 1 implies that

Re: Text mode video operations

2000-12-18 Thread Drew Eckhardt
In message [EMAIL PROTECTED], bsd_appliance@bemail. org writes: I specifically need to know, if possible, how to display hardware- rendered character- and software-rendered pixel-based images on the same display at the same time. This is not possible with straight VGA. If the graphics aren't

Re: Sitting on hands (no longer Re: FreeBSD vs Linux, Solaris, and NT)

2000-12-21 Thread Drew Eckhardt
In message [EMAIL PROTECTED], admin@bsdfan .cncdsl.com writes: Here's the thing about open software that still concerns me. My background is with the major software development tools companies, so that is my point of reference. It is great that code is available and fixes are made and pushed out,

Re: FreeBSD vs Linux, Solaris, and NT

2000-12-21 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] m writes: Yes but most commercial uses take advantage of the binary distribution capability of the BSD license AFTER they've poured their corporate dollars into enhancements. With linux you have to give your work away, making it much less useful.

Re: FreeBSD vs Linux, Solaris, and NT

2000-12-22 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Exactly the same in Europe, only the sharing parts are new for me. The difference seems to be: The problem is that in the US, it is legal to override this with the licensing conditions. In Europe this right is inalienable. Some courts feel

Re: Collecting waiting statistics (simulation question)

2000-12-28 Thread Drew Eckhardt
At 09:55 27/11/19 -0700, Jeff Rhyason wrote: Is there a way that I can log a large amount of statistics regarding kernel memory allocator activity and make that accessible to a user process? (Something like Solaris' crash(1m) and kmalog) The quick solution is to config -g your kernel, and

Re: stray irq 7

2001-01-18 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] m writes: I know we've discussed this before. But I cant believe its a "hardware problem". Standard PIC behavior is to assert IRQ7 when an IRQ line is deasserted before it can be properly latched in. and if you've identified it why is there no

Re: ide striping

2001-09-14 Thread Drew Eckhardt
In message [EMAIL PROTECTED], dphoenix@braven et.com writes: Does it make sense at all to stripe primary slave, secondary master and slave together? I would imagine it is a waste of time , just looking for thoughts on this vs just a single primary master IDE. On a normal system, random access

Re: Driver structures alignment

2001-09-15 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: On Sat, Sep 15, 2001 at 12:13:58PM -0600, Warner Losh wrote: unfortunately, there are many device structures that are passed around via DMA and hte like that don't let you do this... How come? The struct represents some [semi-]physical

Re: Unix Philosophers Please!

2001-10-31 Thread Drew Eckhardt
In message [EMAIL PROTECTED], Joh [EMAIL PROTECTED] writes: What question are you _really_ trying to ask? What is the sound of one hand clapping? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: cant port

2001-10-10 Thread Drew Eckhardt
In message 002101c151ad$664255e0$[EMAIL PROTECTED], [EMAIL PROTECTED] z writes: hi, when i am trying to port some program from ports directory (4.3stable) it never connects to a ftp. Problem might be a firewall, there are so few ports allowed, but 21 is. Anyone has the same experience? Of

Re: kqueue alternative?

2003-06-15 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] ux.org writes: I would say, use select(2). Is there a reason this wouldn't work? fd_set size... -- a href=http://www.poohsticks.org/drew/;Home Page/a For those who do, no explanation is necessary. For those who don't, no explanation is possible.

Re: file size different from ls to du

2003-07-29 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: (17:13) bgd@(bgd)[~/temp] ls -alsh my_file 19120 -rw-r--r-- 1 root bgd 763M Jul 29 16:56 my_file (17:13) bgd@(bgd)[~/temp] du -sh my_file 19Mmy_file So the 'ls -alsh' shows a file in size of 763M, but 19M of sectors are really

Re: optionally include file within a Makefile

2003-12-18 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: On 18 Dec 2003 at 19:02, Dan Langille wrote: My goal is provide a way to override values in a Makefile with values from a local config file. I'm getting further. What's the proper way to do an include? The commands associated with a

Re: FreeBSD 5.x source update and compilation problem in HP Vectra VE18

2003-12-29 Thread Drew Eckhardt
In message [EMAIL PROTECTED], [EMAIL PROTECTED] net writes: Hi, I installed FreeBSD 5.1 in HP Vectra VE18 PIII 450MHz with 128MB RAM and 4GB HDD. Without ECC or even parity memory? However I'm having problem compiling sources. Whenever I try to make buildworl d make stops sometime later

Re: Inetd and wrapping.

1999-06-25 Thread Drew Eckhardt
In article 199906242353.taa06...@smtp4.erols.com you write: Here's one possibility, it adds a a wrap/nowrap field that goes beside the wait/nowait field, so you would have: ftp stream tcp nowait wrap root /usr/libexec/ftpd ftpd -l Breaking backwards compatability is evil.