freebsd 5.4 on HP DL 385

2005-06-08 Thread Sergey Lyubka
Hi hackers, I have got an HP DL 385 dual opteron system, with 2 on-board broadcom network cards. If I use more NICs, I have to have ACPI turned on. But if the ACPI is turned on, kernel does not boot, this is an error message: panic: npx: can't get ports Does anybody knows a solution for that ?

transparent squid proxy + bridge

2005-04-20 Thread Sergey Lyubka
Hi there, Recently I tried to make a transparent web proxy on a machine that run in bridging mode. At last, I decided to make a patch. Here it is for those who want to do the same. One interface should be given an IP address so squid may do a requests. Squid listens on 127.0.0.1:8080. I am using

/boot/boot problem

2004-12-02 Thread Sergey Lyubka
Hi John, thanks for commiting my previous boot2.c patch. I would appreciate any hint about the following problem. I am using 5.3, sources from 1 Dec 2004. The environment I am using is this: ATA disk has one partition with one file, /kernel. /kernel has MFS root filesystem. there is no

actual boot device

2004-08-17 Thread Sergey Lyubka
How would one know the actual boot device after kernel successfully booted ? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: actual boot device

2004-08-17 Thread Sergey Lyubka
, 2004 at 11:15:16AM -0500, Dan Nelson wrote: In the last episode (Aug 17), Sergey Lyubka said: How would one know the actual boot device after kernel successfully booted ? The kern.bootfile sysctl points to the kernel file that was loaded, according to the loader. If you booted off

Re: actual boot device

2004-08-17 Thread Sergey Lyubka
You don't say which version you are running, but in 5.x booting without the loader is not supported in any way shape or form. -- Brooks Well I am booting 5.2 -current, yes, without the loader. The image is here: http://oasis.uptsoft.com/~devnull/floppy.img MFS root is embedded into a

Re: actual boot device

2004-08-17 Thread Sergey Lyubka
The best you can do is search your mountpoints and see whether any of them has a /kernel file. The bootblock (and loader) uses the BIOS to read the kernel file, so it's possible that the device may not even be accessible from the running system. If, for example, you booted off a floppy but

Re: memory mapped packet capturing - bpf replacement ?

2004-06-21 Thread Sergey Lyubka
Discussion on -current, read vs mmap, explained this. If userland process does pre-fault allocated memory, ng_mmq appears to be considerably faster than pcap: # ./benchmark rl0 /dev/mmq15 2 desc rcvd droppedseen totlen ppstime (sec) mmq 76865 0

Re: memory mapped packet capturing - bpf replacement ?

2004-06-16 Thread Sergey Lyubka
Does the ng_hub cause the packet to be copied? If so you've still got the same number of copies as vanilla BPF. ng_hub does copy a packets. But, this does not explain the test results. the benchmark works like this: 1. connect ng_mmq node to ng_hub 2. run benchmark for mmq 3. open pcap

memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Sergey Lyubka
. is it OK to have no mutexes for ringbuffer operations ? The ng_mmq code, as well as the benchmark code, are at http://oasis.uptsoft.com/~devnull/ng_mmq/ Setup instructions are at http://oasis.uptsoft.com/~devnull/ng_mmq/README -- Sergey Lyubka, Network Security Consultant NetFort Technologies Ltd

Re: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Sergey Lyubka
Hi Ed, I did my benchmark by increasing the packet rate until I found the point at which packets started to be dropped. A bit offtopic - what traffic generator you use ? In my testing I found the call to microtime() to be quite expensive. (It will vary depending on which timecounter is

5.2.1 + snort, dropping packets

2004-05-24 Thread Sergey Lyubka
hackers, I am running snort on 5.2.1-RELEASE, and I am getting high dropped packets rate. traffic is quiet, about 1kpps, the box runs on xeon processor, intel gigabit NICs (em driver), system load is low: CPU states: 1.9% user, 5.1% nice, 1.6% system, 4.7% interrupt, 86.8% idle Mem: 121M

etherboot 5.x kernels

2003-12-11 Thread Sergey Lyubka
not sure is it the correct list to ask, but let give it a try. I was using etherboot to boot the diskless station. The kernel copied over the network find, but then I saw no kernel messages on the console. I put some debug messages into etherboot code, confirmed that kernel was actually called.

dlopen() and -pg flag

2003-12-03 Thread Sergey Lyubka
Below is a little snipper that tries to dlopen(argv[1]). It works fine until it is compiled with profiling support, -pg flag. Compiled with -pg, dlopen() reports Service unavailable. How to fix that ? -sergey #include dlfcn.h #include stdlib.h #include stdio.h int main(int argc, char

Re: dlopen() and -pg flag

2003-12-03 Thread Sergey Lyubka
Absolutely. thanks, that helps! On Wed, Dec 03, 2003 at 02:23:18AM -0800, Lev Walkin wrote: -pg on your system implies static linking. dlopen() is not available in statically linked binaries on FreeBSD and many other systems. Consider building your binary dynamic by making sure there is a

Re: runtime

2002-08-16 Thread Sergey Lyubka
this out about itself); 2) Have a thread wait for a specified amount of computer time (not actual time so nanosleep won't work). I looked at the man pages, but all I could find was runtime which seems only to be accessible from the kernel. -- Sergey Lyubka Asita Technologies Int, Galway

Re: Assembly, Kernels and Bootstraps

2002-08-01 Thread Sergey Lyubka
. -- Sergey Lyubka Asita Technologies Int, Galway, Ireland :wq To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Assembly, Kernels and Bootstraps

2002-08-01 Thread Sergey Lyubka
Lions wrote a book far long ago, and it is still worth reading. Why? Because he didn't just show the code, he showed the concepts. Describing, say, how to call malloc() is a stupid thing. This can be outdated tomorrow. But describing the concept, how kernel malloc interface has being developed

Re: Assembly, Kernels and Bootstraps

2002-08-01 Thread Sergey Lyubka
the developers' handbook online, specifically so things can be updated quickly. And it's difficult to get more text for that; the people who can write that text are busy writing code. -- Sergey Lyubka Asita Technologies Int, Galway, Ireland To Unsubscribe: send mail to [EMAIL PROTECTED

Re: reboot frm ddb

2002-06-28 Thread Sergey Lyubka
On Thu, Jun 27, 2002 at 11:04:29AM -0700, Julian Elischer wrote: try call boot 0 sometimes you need to do it more than once (?) On Thu, 27 Jun 2002, Danny Braniss wrote: Aha. Thanks for all. May be this should be mentioned in ddb manpage ? -- Sergey Lyubka Asita Technologies Int

Re: reboot frm ddb

2002-06-27 Thread Sergey Lyubka
lack of knowing which exact version provide this feature), you can just type reset at the ddb prompt and have it reboot. Otherwise, you'll probably just have to: call cpu_reset BTW, if the page fault in kernel mode occurs. is it any way to sync discs before reset ? -- Sergey Lyubka Asita

locore.s quiestion

2002-06-14 Thread Sergey Lyubka
no need to jump. Thanks, -sergey -- Sergey Lyubka Asita Technologies Int, Galway, Ireland To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: locore.s quiestion

2002-06-14 Thread Sergey Lyubka
From my own notes: The address of the begin symbol is pushed onto the stack, and the btext() function returns ...not to its

Re: locore.s quiestion

2002-06-14 Thread Sergey Lyubka
Oh, got it. That's because of paging is set up. Thanks Tony ! -sergey p.s. btw, btext executes in protected mode, not in real. since the link is up now, you can refer to the article , that is described well there. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers