Re: Routing issue with cable modem

2000-10-20 Thread Terry Lambert
o an MSDOS window, and having Windows simply tell you what its network configuration? I suspect you are incorrectly setting up an asymetric route, since you say that you have zero upchannel through the cable line, and must use an analog dialup, instead... Ter

Re: burncd utility for atapi burners

2000-10-20 Thread Terry Lambert
. + */ Since that includes the right to integrate and distribute. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail

Re: FreeBSD vs. Linux

2000-10-24 Thread Terry Lambert
you could get UNIX sources and both NetWare products for $250,000, which also makes a statement about the value of the SVR4 source code... Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and

Re: Cache Questions

2000-10-24 Thread Terry Lambert
). Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-ha

Re: Cache Questions

2000-10-24 Thread Terry Lambert
. If the original poster follows -hackers, look for a subject with "DMA in drivers", since the topic appears to be over similar general issues. For that matter, your scatter/gather comments in that thread were also potentially relevent. Ter

Re: FreeBSD vs. Linux

2000-10-24 Thread Terry Lambert
/company.htm Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-ha

Re: PCI Device Remapping

2000-10-25 Thread Terry Lambert
it can take your BIOS as input and output a program (fully commented!) that, when assembled, will result in the same BIOS being generated. Flip the start bit and... Terry Lambert [EMAIL PROTECTED] --- Any opinions

Re: AutoFS on FreeBSD

2000-10-25 Thread Terry Lambert
ports Linux FS modules loaded into user space, but without a clarification of why you want/need an AutoFS, I don't think anyone can tell you whether or not that would be an appropriate technology... Terry Lambert [EMAIL PRO

More UNIX trademark trivia

2000-10-25 Thread Terry Lambert
). Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-ha

Re: vm_pageout_scan badness

2000-10-25 Thread Terry Lambert
, and how bursty the situation is, there's no way to pick an appropriate algorithm. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers

Re: Solaris 8's split cache

2000-10-25 Thread Terry Lambert
cache? Or did they invent a "working set quota for all file system data"? Guess you couldn't patent it, if you called it that... 8-p Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting

Re: AutoFS on FreeBSD

2000-10-25 Thread Terry Lambert
lse to do a lot of coding. You best bet, if you pursue this further, is to contact the freebsd-fs list instead of the freebsd-hackers list, since the people who hack FS code are all there, and not all here (as opposed to the people on hackers, who are "not all there" 8-)).

Re: vm_pageout_scan badness

2000-10-25 Thread Terry Lambert
nteractive use, but you can't achieve the opposite effect by diddling administrative limits that aren't already predicated on a reserve model. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting

Re: rlzdbase port 635

2000-10-27 Thread Terry Lambert
/in-notes/iana/assignments/port-numbers is your friend. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL

Re: Accessing the tty structure of an opened device

2000-10-27 Thread Terry Lambert
in mind, like you do. Sort of the current parallel port code, applied to serial ports... Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers.

Re: smbfs-1.3.0 released

2000-10-27 Thread Terry Lambert
hat a new VFS_STAT struct is being copied out in all cases, instead of making sure it is old vs. new, and doing the right thing, and the resulting buffer overrun stomps on something important. Terry Lambert [EMAIL PROT

Re: Logging users out

2000-10-31 Thread Terry Lambert
dear departed tty, since there are actually people who really do use non-blocking fds and vmin/vtime to do things like user space threads and background computation while waiting for user input. Terry Lambert [EMAIL

Re: Logging users out

2000-10-31 Thread Terry Lambert
hat failed). Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: Filesystem holes

2000-10-31 Thread Terry Lambert
same time, I'll know there's a bug in my daemon). Personally, I'm not rich enough to be able to burn disk space so easily. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my

Re: smbfs-1.3.0 released

2000-10-31 Thread Terry Lambert
obably a "feature" based on the protocol rev you are talking to the server. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employer

Re: Filesystem holes

2000-10-31 Thread Terry Lambert
fd, F_NONPOSIX, i); It would help out the NFS locking daemon to no end... Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Un

Re: Time to close the list?

2000-11-02 Thread Terry Lambert
that this Peter person is the guy doing the resending; we could also just block him, until he upgrades his email client so that it's no longer vulnerable to this worm (not virus: people who write antivirus software are so bad with terminology). Terry Lambert

Re: Time to close the list?

2000-11-02 Thread Terry Lambert
ll cascades during propagation, but at least this would be O(1) instead of geometric. Ugh. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: FreeBSD in good standing in netcraft survey

2000-11-02 Thread Terry Lambert
ss a number of times in the past. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Broken PCI-IDE RZ1000 ata

2000-11-02 Thread Terry Lambert
that the "new, improved" ATA driver code is mearely "new". Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Un

Re: Really odd BTX halted problem booting FreeBSD on VALinux h

2000-10-27 Thread Terry Lambert
. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" i

Re: gdb threaded application

2000-11-08 Thread Terry Lambert
can't find some of the libraries (ldd and ld.so use the same ldconfig hints, and both use the same lookup function, which fails to do the correct thing when looking for "not found" libraries). Terry Lambert

Re: system call and SYSCALL macro

2000-11-08 Thread Terry Lambert
as "SYS_my_call" to syscall(2) for things to work). Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMA

Re: daemon()

2000-11-08 Thread Terry Lambert
to get the highest posible fd for doing this crap, which meant waiting for it to eat up all of kernel memory chasing fd's until there was no more memory available for the per process open file table. All in all, bash is pretty buggy. Terry Lambert

Re: SIGALARM is loosing when time are shifted.

2000-11-08 Thread Terry Lambert
at all :( Is it normal? No. This looks like a bug. When advancing the clock past timed events which are outstanding, it is supposed to trigger those events that would have occurred in the interim. Terry Lambert [EMAIL

Re: close call in a device ?

2000-11-08 Thread Terry Lambert
s not hard to implement, it's mostly just labor intensive. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail

Re: close call in a device ?

2000-11-08 Thread Terry Lambert
be recommended; fix the client program. Or fix the device model. You can't have multiple VMWARE sessions in FreeBSD today because of this defect in the device model. Terry Lambert [EMAIL PROTECTED] --- Any opinions

Re: system call and SYSCALL macro

2000-11-08 Thread Terry Lambert
ion pointer is not in the sysent[] array. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: bsd.prog.mk and /usr/local/include

2000-11-08 Thread Terry Lambert
using a newer g++ for exception handling and RTTI). If you are doing it for any other reason, setting CFLAGS for the include path and LDFLAGS for the library path is probably the right way to do it. Terry Lambert

Re: close call in a device ?

2000-11-09 Thread Terry Lambert
his has at least given you more insight into what's involved, and where to look in the source for more answers. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previ

Re: PCI interrupt routing across PCI:PCI bridges

2000-11-10 Thread Terry Lambert
of the spec., but I can't test it either. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED

Re: aio_read() broken functionality.

2000-11-10 Thread Terry Lambert
er updated. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hacke

Re: printf()

2000-11-10 Thread Terry Lambert
in my email archive. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe fre

Re: What about rc.shutdown.local?

2000-11-10 Thread Terry Lambert
s setting itself up to be a system on which all working software needs to be integrated into the ports system, and this won't work at all for commercial or role modularized code. Terry Lambert [EMAIL PROTECTED] --- Any opini

Re: Repeatable STL core with -pthread

2000-11-10 Thread Terry Lambert
D, and on, say, IRIX, which is still Draft 4. But if this is not a portability issue for you, I would suggest using that STL instead. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not

Re: aio_read() broken functionality.

2000-11-10 Thread Terry Lambert
* Dmitry Sychov [EMAIL PROTECTED] [001109 13:06] wrote: Greetings. According to manual the aio_offset field of the "aiocb" structure is ignored in the aio_read() call. So one can read the file only from beginning. Very bad for me. :-( Will this bug be fixed in FreeBSD 5.0?

Re: iowait CPU state

2000-11-10 Thread Terry Lambert
of the CPU into account, but you might consider using that anyway, depending on why you want the statistic. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous

Re: iowait CPU state

2000-11-15 Thread Terry Lambert
stead of 4M. Modern bloat-ware really pisses me off; I built the bind library the other day: the frigging thing was 4M, unstripped. Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not

Re: iowait CPU state

2000-11-16 Thread Terry Lambert
ips, based on whether or not someone thought before they wrote their code... Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe:

Re: Really odd BTX halted problem booting FreeBSD on VALinux hardware

2000-10-27 Thread Terry Lambert
(but that's just my gut reaction to a crash following a BIOS call... Terry Lambert [EMAIL PROTECTED] --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail

Re: api for sharing memory from kernel to userspace?

2004-05-21 Thread Terry Lambert
Alfred Perlstein [EMAIL PROTECTED] writes: I need to share about 100megs of memory between kernel and userspace. The memory can not be paged and should appear contig in the process's address space. Any suggestions? I need a way to either: map user memory into the kernel's address space.

Re: syscalls implementation

2004-08-27 Thread Terry Lambert
Mmaist wrote: Hi! I was wondering were syscalls implementation is in the FreeBSD source tree. I would like to know, especially, where int kldload(const char*); is located. sys/kern/kern_linker.c contains int kldload(struct thread *, struct kldload_args *) and I need to watch at

Re: Network performance tuning.

2001-07-16 Thread Terry Lambert
Matt Dillon wrote: Also, the algorithm is less helpful when it has to figure out the optimal transmit buffer size for every new connection (consider a web server). I am considering ripping out the ssthresh junk from the stack, which does not work virtually at all, and using

Re: Whitespace at end of line

2001-07-16 Thread Terry Lambert
Wilko Bulte wrote: Maybe I'm just plain dim today (I will add a beer to rectify this situation at first convenience..) but what is so bad about some trailing whitespace that a massive commit-a-thlon is called for? just wondering, Wilko You use emacs, don't you? 8-) 8-) -- Terry To

Re: init

2001-07-16 Thread Terry Lambert
[EMAIL PROTECTED] wrote: i need to TAILQ_INIT a queue at kernel startup .. how can i do it in my code? reg Grep for SYSINIT in the kernel sources. Do your initialization as late as possible, but before the queue is used. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: pagedaemon + vmdaemon

2001-07-16 Thread Terry Lambert
Dan wrote: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root2 14.2 0.0 00 ?? DL Tue11AM 4:35.33 (pagedaemon) root3 12.7 0.0 00 ?? DL Tue11AM 1:56.25 (vmdaemon) Cpu kept hitting high load averages on machines for

Re: NatSemi DP83820 gigE driver kit for 4.2 and 4.3

2001-07-16 Thread Terry Lambert
Mike Silbersack wrote: For those who have gigabit ethernet NICs based on the National Semiconductor DP83820 and DP83821 controller chips and want to use them with FreeBSD 4.2 and 4.3, there is a driver kit now available at the following URL: ... These cards are all extremely cheap

Re: NatSemi DP83820 gigE driver kit for 4.2 and 4.3

2001-07-17 Thread Terry Lambert
Richard Hodges wrote: On Mon, 16 Jul 2001, Bill Paul wrote: They're okay. The NatSemi chip has one flaw, which is that RX buffers must be aligned on a 64-bit boundary. None of the more expensive NICs have this restriction. Go ahead and beat me up if you have to :-) But why is there

Re: NatSemi DP83820 gigE driver kit for 4.2 and 4.3

2001-07-17 Thread Terry Lambert
Bill Paul wrote: Now, before any of you armchair geniuses out there start chiming in with your incredibly brilliant solutions for this problem which you just made up on the spot, forget it. This issue has been discussed to death and there's just no easy way around it. Terry Lambert

Re: math library difference between linux emulation and native freebsd (and native linux)

2001-07-17 Thread Terry Lambert
Albert D. Cahalan wrote: There are only two shared libaries in common (libc and libm) and both are the same on FreeBSD (in /compat/linux) and Linux. So any ideas on where the program is going wrong? man fpsetround That won't change a thing. Both systems round to nearest. Look at

Re: NatSemi DP83820 gigE driver kit for 4.2 and 4.3

2001-07-18 Thread Terry Lambert
Richard Hodges wrote: Now TX buffers are a problem - I have to take what I get and just deal with it. If both start address and length need to be aligned, then I'm pretty much screwed - I have to copy... No, exactly ythe opposite: the TX buffer is _not_ a problem. This is because

Re: math library difference between linux emulation and native freebsd (and native linux)

2001-07-18 Thread Terry Lambert
Stefan Hoffmeister wrote: One obvious reason that the Linux approach is wrong is that it ends up requiring the save and restore of FP registers on context switches, which is overhead they ate anyway, by doing TSS based context switching. The amount of state with SSE is up to something like

Re: math library difference between linux emulation and native freebsd

2001-07-18 Thread Terry Lambert
Albert D. Cahalan wrote: The defaults for the Linux emulator are different than the defaults for Linux. Linux sets some stuff up wrong, FreeBSD sets stuff up wrong. This is a choice between bad and worse, since the CPU does not support what you want. FreeBSD complies strictly with

Re: x86 unaligned access followup.

2001-07-18 Thread Terry Lambert
John Baldwin wrote: Actually, since the 486, it's been possible for us to turn on unaligned access exceptions on the x86. We should probably consider doing this, to ensure better performance, and to avoid the unnecessary bus overhead we eat for unaligned access today... not to mention

Re: Quick question about x86 asm

2001-07-18 Thread Terry Lambert
Farooq Mela wrote: Hi -hackers, I'm developing some assembly routines that are called from a C library under FreeBSD. Some of these routines do not return anything (ie, prototyped in C, their return type is 'void'). Does the compiler expect that the asm routines that don't return

Re: Weird stdarg.h problem in 4.3-STABLE

2001-07-19 Thread Terry Lambert
Sheldon Hearn wrote: What I really want is a static inline void function declared in a header file and included in various source files, looking something like this: static inline void [ ... ] GCC gives syntax error before 'void'. Fair enough. So obviously, this should be implemented

Re: x86 unaligned access followup.

2001-07-19 Thread Terry Lambert
John Baldwin wrote: Also note that this will play hell with some of the recent copy avoidance changes made by Bill Paul to the ethernet drivers, to avoid the expense of copying the packet, with the knowledge that there would be an increased overhead in the resulting packet field

Re: x86 unaligned access followup.

2001-07-19 Thread Terry Lambert
[EMAIL PROTECTED] wrote: A shakedown cruise could end up being very rough... you would effectively need to check an unaligned access in kernel is OK flag in many of these instances, and fall back to doing the copy when it was false. ...therefore - never mind. Perhaps some app code may

Re: Quick question about x86 asm

2001-07-19 Thread Terry Lambert
Farooq Mela wrote: cc -S is your friend. Right, well that can certainly help, but what gcc generates can be dependant on calling convention, optimization setting, c c, and though the code generated in one particular scenario may not be an absolute indicator of it's behavior. In other

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Terry Lambert
Julian Elischer wrote: hi, there! what is arcnet? Old PC networking standard, limited to 2Mbit/S. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: inpcb question

2001-07-19 Thread Terry Lambert
] I have written a kernel module and modified the stack ] code ( at the socket layer) to send control to my ] module. I am trying to access the inpcb structure ] associated with that particular socket. ] struct in_pcb* inp = sotoinpcb(so); ] if (inp) ] processing ] ] ] though the

Re: flock/pthread bug?

2001-07-20 Thread Terry Lambert
Peter Pentchev wrote: I don't know if Terry was talking about the sched_yield() syscall, but if he was, then sched_yield(2) exists, at least in 4.x, and is documented as POSIX-compliant. No. He needs to yield the system CPU, not the CPU for his particular thread. In the user space threads

Re: Default retry behaviour for mount_nfs

2001-07-20 Thread Terry Lambert
Matthew Jacob wrote: So the question is - should I keep the new behaviour that is probably a better default and will catch out fewer new users but may surprise some experienced users, or should I revert to the traditional default where `-R1' or `-b' are required to avoid boot-time hangs?

Re: Default retry behaviour for mount_nfs

2001-07-20 Thread Terry Lambert
Matthew Jacob wrote: Hmm, maybe we should implement the notion of critical_local and critical_net filesystems (a la NetBSD). Heck, I don't even need the distinction between net and local, just critical would do. All remote, critical filesystems would be blocking, and all others not.

Re: Default retry behaviour for mount_nfs

2001-07-21 Thread Terry Lambert
Ian Dowse wrote: In message [EMAIL PROTECTED], Terry Lambert writes: FWIW, I vote that we rever to the traditional default and require -R1 or -b to avoid boot time hangs. The standard behaviour for most NFS implementations that I'm aware of would do this. I agree; people at work have

Re: dual booting -stable -current

2001-07-21 Thread Terry Lambert
David O'Brien wrote: On Fri, Jul 20, 2001 at 06:32:29PM +0200, Wilko Bulte wrote: I'm probably completely dim today so please bear with me :/ Thing is I want to setup a dual-boot box, running -stable -current. This box, a P2/266 has a 30G IDE disk. What I did is create ad0s1 -

Re: strange with named

2001-07-21 Thread Terry Lambert
Alexey Privalov wrote: hi all. i have FreeBSD 4.3-STABLE and named 8.2.3-REL. everyday i see following strings in my log: Jul 21 13:43:17 host named[124]: denied update from [196.127.211.51].1475 for host.domain Jul 21 13:48:17 host named[124]: denied update from [196.127.211.51].1486

Re: flags on symlinks

2001-07-22 Thread Terry Lambert
Bakul Shah wrote: Flags are associated with inodes, and symlinks do not have inodes in the common case, as they exist solely in the directory entry, unless they are too long. $ mkdir foo; cd foo; date x; ln -s x y; ls -lai total 3 261248 drwxr-xr-x 2 bakul bakul 512 Jul 22 12:58 .

Re: cluster size

2001-07-25 Thread Terry Lambert
Zhihui Zhang wrote: Hi, in freebsd can we change the cluster size from 2048 bytes.If yes how can we do that? do we have to configure in some file? You must be asking why the mbuf cluster size is chosen as 2048, right? It is probably a tradeoff between memory efficient and speed. Ask

Re: passing function ptrs to syscalls

2001-07-25 Thread Terry Lambert
Evan Sarmiento wrote: I'm writing a system call which requires a function pointer as an argument, In syscalls.master, it is specified as such: 366 STD BSD { int prfw_inject_fp(int sl, int synum, pid_t pi d, int (*fp)() ); } However, when I try compiling the kernel, sysproto

Re: Invoking a userland function from kernel

2001-07-25 Thread Terry Lambert
[EMAIL PROTECTED] wrote: I need pass asynchronously data from kernel to a userland process, include a quantity variable of data (void *opaque). The easiest way to do this is to have the user space process register a kevent, and then KNOTE() in the kernel when the event takes place. Another

Re: FreeBSD for ARM processor

2001-07-25 Thread Terry Lambert
Dave Feustel wrote: Strongarm-based pcs designed by Chalice Technologies http://www.chaltech.com are available from Simtek http://www.simtec.co.uk/ No pricing anywhere that I could find. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body

Re: Fwd: Sun Grid Engine 5.2.3 Available. Now Open Source

2001-07-25 Thread Terry Lambert
Ron Chen wrote: Sun Grid Engine goes opensource. See SGE home page: http://www.sun.com/gridware I see no source code there, only Solaris and Linux binaries. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: exec() doesn't update access time

2001-07-25 Thread Terry Lambert
David E. Cross wrote: I noticed that exec(2) does not update the last access time of a file... is this intentional? POSIX only mandates updates of time fields in very specific cirumstances: when using particular API's. So if you use a different or unexpected API, an update is not required.

Re: Fwd: Sun Grid Engine 5.2.3 Available. Now Open Source

2001-07-26 Thread Terry Lambert
Paul Marquis wrote: On Wednesday 25 July 2001 03:29, Terry Lambert wrote: Ron Chen wrote: Sun Grid Engine goes opensource. See SGE home page: http://www.sun.com/gridware I see no source code there, only Solaris and Linux binaries. Check out (though the site(s) currently

Re: Downloads appear broked...but work...keep hitting reload...

2001-07-26 Thread Terry Lambert
Jim Bryant wrote: Everybody and their dog must be downloading this. If you keep getting the java.lang.OutOfMemoryError, just keep hitting reload... I was just about to give up when it finally worked for me. Gee, garbage collection is special. I'm going to run right out and use Java in my

Re: cluster size

2001-07-26 Thread Terry Lambert
Julian Elischer wrote: no.. it has to do with the fact that it would be unwise to make a cluster 1 page size since we have no guarantee that all drivers could handle breaking up a DMA if a cluster spanned 2 physical address ranges. (they can handle a chain of discontinuous mbufs but may

Re: cluster size

2001-07-26 Thread Terry Lambert
Bosko Milekic wrote: On Wed, Jul 25, 2001 at 02:17:38PM -0400, Zhihui Zhang wrote: I see. It has something to do with the power-of-two allocator we are using inside the kernel. No, it has nothing to do with the power-of-two allocation strategy used in some cases inside the

Re: cluster size

2001-07-26 Thread Terry Lambert
vishwanath pargaonkar wrote: Hi, lets come to my question please. tell me can i change mbuf cluster size from 2048 to 4096?? You can do it, but it's not a really very useful thing to do, since the majority of your cluster will end up being vacant. how shd i do it if i can do it? Look

Re: cluster size

2001-07-26 Thread Terry Lambert
Bosko Milekic wrote: On Thu, Jul 26, 2001 at 10:18:09AM -0700, Terry Lambert wrote: The real reason behind all this is to make the input and output routines symmetric, since mbuf's can be allocated at interrupt, and clusters can't (or couldn't, last time I looked at 4.3

Re: cluster size

2001-07-26 Thread Terry Lambert
Alfred Perlstein wrote: On Thu, Jul 26, 2001 at 10:18:09AM -0700, Terry Lambert wrote: The real reason behind all this is to make the input and output routines symmetric, since mbuf's can be allocated at interrupt, and clusters can't (or couldn't, last time I looked at 4.3

Re: cluster size

2001-07-26 Thread Terry Lambert
Bosko Milekic wrote: Er, wouldn't that be the only way for cards to refil thier DMA recieve buffers? Look at the Tigon II and FXP drivers. The allocations in the macros turn into m_get, not m_clusterget. From if_fxp.c (fxp_add_rfabuf(), sometimes called from fxp_intr()):

Re: Why two cards on the same segment...

2001-07-27 Thread Terry Lambert
Steven Ames wrote: I don't think the networking code knows/cares if something is private or public IP space. I might be off here but I think the real problem with two seperate networks on one card (or even on two cards) would be the default route (can't have two right?) and which IP address

Re: Why two cards on the same segment...

2001-07-27 Thread Terry Lambert
Steven Ames wrote: You lost me. How what is being done? You can use ifconfig to assign as many blocks/netmasks as you feel the urge to. It'll do it. Actually, you'll get an address in use error; it will add the IP alias to the card, but in fact, it will not really dso the job: the ifconfig

Re: Why two cards on the same segment...

2001-07-27 Thread Terry Lambert
Matt Dillon wrote: I wish it were that easy. If you have two interfaces on the same LAN segment, but one is configured with an internal IP and one is configured with an external IP, and the default route points out the interface configured with the external IP, then you are

Re: cluster size

2001-07-28 Thread Terry Lambert
Zhihui Zhang wrote: I thought doing a memory free is always safe in an interrupt context. Now it seems doing an allocation of memory is safe too. Does MCLGET() call vm_page_alloc() or malloc() eventually? If so, it might block. The mbuf allocator uses the zone allocator. The reason this

Re: inet_aton

2001-07-28 Thread Terry Lambert
Anjali Kulkarni wrote: Hi, I want to use the function inet_aton() in the kernel code. However, I found no kernel equivalent of this function int the freebsd sources. I could find inet_ntoa(), but not inet_aton(). Is it named by some other name or how can I locate it? The kernel is not

Re: KNOTE()

2001-07-29 Thread Terry Lambert
Daniel Eischen wrote: Why are you trying to push so much into the kernel? Rethink the problem you are trying to solve. See his other posting; he's living inside the constraints of an existing library and API. In retrospect, and given the information he has subsequently provided, kevent's are

Re: Invoking a userland function from kerne

2001-07-29 Thread Terry Lambert
[EMAIL PROTECTED] wrote: Now, I need manage Timed Events: Two RTP related events must occur which are timed. They are: 1.RTCP (control RTP packages) reports must be sent periodically. 2.BYE (a control RTP package) packets may be reconsidered for transmission. To support scheduling,

Re: cluster size

2001-07-29 Thread Terry Lambert
Bosko Milekic wrote: So, in general: 1)Only some allocators can be used at interrupt time 2)If they can, they must precommit kernel address space to the task 3)Once memory is allocated from one of these pools, it is never returned to the system for reuse

Re: cluster size

2001-07-29 Thread Terry Lambert
Zhihui Zhang wrote: Excellent answer! I looked at the zone allocator code almost two years back and I wondered at that time why FreeBSD cannot allocate KVM at interrupt time but CAN allocate physical memory at interrupt time. It turns out there is a physical memory reserve for interrupt

Re: cluster size

2001-07-29 Thread Terry Lambert
Jonathan M. Slivko wrote: I'm not sure if Steve Baumel (the person largely responsible for the SVR4 VM system) ever wrote a paper on his approach, or not, but with the Solaris source code available, his code is now available for study. Isn't that just the binary version, you still have

Re: inet_aton

2001-07-31 Thread Terry Lambert
Anjali Kulkarni wrote: Thanks for your response. I am new to kernel programming, and so cud u tell me why it is a bad idea to pass strings to the kernel? Is it due to static memory is used etc.? Actually, I am not passing strings to the kernel, I am writing code in kernel which has a remote

Re: address resolution question

2001-08-01 Thread Terry Lambert
Weiguang SHI wrote: I need your help to understand this. In machdep.c, 1451 /* 1452 * map page 1 R/W into the kernel page table so we can use it 1453 * as a buffer. The kernel will unmap this page later. 1454 */ 1455 pte =

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Terry Lambert
Joseph Gleason wrote: In FreeBSD, how can I determine the size of a file in C++ when the file is greater than 4gb? Currently, I use stat() and use st_size. That is limited to 4gb (32bit unsigned int) Uh, st_size is an off_t, which is a signed 64 bit value, not an unsigned 32 bit vale...

<    1   2   3   4   5   6   7   8   9   10   >