Re: Tuning: 100mbit faster, gbit slower.

2008-03-24 Thread Jin Guojun [VFFS]
You cannot do blind tuning according those numbers. They are for 1-10Gbps pipe. The proper number is "pipe diamter" x "pipe length" = capacity In your case, the maximum number = 100Mbps x "delay from your machine to server" -Jin Daniel Andersson wrote: Hey! I was trying to milk the most o

Re: reduce interrupt rate for CD/DVD drive(r)

2006-09-01 Thread Jin Guojun [VFFS]
Peter Jeremy wrote: On Sun, 2006-Aug-27 16:37:29 -0700, Jin Guojun [VFFS] wrote: I have difficulty to get CD/DVD write speed above 1.6MB/s (10x for CD, or 1.1x for DVD). The problem seems to be the interrupt rate is high (70-80% of CPU) for CD/DVD drive(r). Your drive is probably

reduce interrupt rate for CD/DVD drive(r)

2006-09-01 Thread Jin Guojun [VFFS]
I have difficulty to get CD/DVD write speed above 1.6MB/s (10x for CD, or 1.1x for DVD). The problem seems to be the interrupt rate is high (70-80% of CPU) for CD/DVD drive(r). I have tried three different CD/DVD drives under three different hardware platform with FreeBSD 4.11-R/6.1-R via gro

Re: question concerning proper usage of kernel variables net.bpf.bufsize and vm_kmem_size_max

2006-07-29 Thread Jin Guojun [VFFS]
Raymond Owens wrote: Sir, By hardware cache size, you are referring to the processor cache? If the box has two processors, should the value used for cache size in this calculation be doubled? In very general terms, what is the link between the net.bpf.bufsize and the cache? Thanks for info.

Re: question concerning proper usage of kernel variables net.bpf.bufsize and vm_kmem_size_max

2006-07-26 Thread Jin Guojun [VFFS]
R. B. Riddick wrote: --- Raymond Owens <[EMAIL PROTECTED]> wrote: Questions: Can VM_KMEM_SIZE_MAX be set manually with sysctl? No, but you could set it with this procedure: 1. Insert the lines vm.kmem_size=123456789 vm.kmem_size_max=1234567890 in /boot/loader.conf 2. reboot That

Re: packet drop with intel gigabit / marwell gigabit

2006-04-08 Thread Jin Guojun [VFFS]
For this situation, you can run "netstat -m" to see if there is mbuf outage. Attached is a shell script to watch mbuf usage in 1 second interval. If you see the maximum-used (peak) count reach (or close) to the "max", and the cur count changes dramatically during your test, you then may have memo

Re: packet drop with intel gigabit / marwell gigabit

2006-03-26 Thread Jin Guojun [VFFS]
OxY wrote: what kind of details should i attach? to analyze the problem? Assume that you have process A to cause process B dropping packets: Step (1): Run B only -- what is the maximum through without packet drop? what is the CPU utilization? what type of t

Re: packet drop with intel gigabit / marwell gigabit

2006-03-24 Thread Jin Guojun [VFFS]
Lucas Holt wrote: On Mar 24, 2006, at 8:12 AM, OxY wrote: hi guys! well, i changed my motherboard and CPU from the asus a7v8x+amd 2000+ xp to the abit be7 + p4 2.4 (533fsb) and the packet loss fell down from 8% to 2%, but still have loss... loss coming when i have load.. i guess it decr

Re: packet drop with intel gigabit / marwell gigabit

2006-03-22 Thread Jin Guojun [VFFS]
Gary Thorpe wrote: [No subject in first one, sorry for repost] ... 1.6 Gb/s = system bus bandwidth. Cache won't affect this bandwidth. DDR400 has 400 MB/s: only attainable for long sequential accesses of either read or write but not a mix of both. DMA should be able to get near this limit (lon

Re: packet drop with intel gigabit / marwell gigabit

2006-03-22 Thread Jin Guojun [VFFS]
Chris Howells wrote: On Wednesday 22 March 2006 18:52, Arne Woerner wrote: It is an ECS K7VMM or K7VMM+ if I recall it correctly... Bought in 2003... Is it easy to explain, why the 266FSB cannot do 8Gbit/sec without problem? I mean: 2*133MHz*32bit=8.3125Gbit/sec... Is the MMU too slow (e.

Re: packet drop with intel gigabit / marwell gigabit

2006-03-22 Thread Jin Guojun [VFFS]
Arne Woerner wrote: Notice that your memory copy speed will be one half of it. Why "half"? dd causes two copies but counts each byte just once... Maybe "dd" in combination with /dev/zero is not the right way to measure memory bandwidth? It depends on how /dev/null implemented. It m

Re: packet drop with intel gigabit / marwell gigabit

2006-03-22 Thread Jin Guojun [VFFS]
Arne Woerner wrote: It depends on how you use /dev/zero. dd of=/dev/null if=/dev/zero bs=4k count=100k tests cache speed % dd of=/dev/null if=/dev/zero bs=4k count=100k 102400+0 records in 102400+0 records out 419430400 bytes transferred in 0.204511 secs (2050894814 bytes/sec) ab

Re: packet drop with intel gigabit / marwell gigabit

2006-03-22 Thread Jin Guojun [VFFS]
Arne Woerner wrote: --- "Jin Guojun [VFFS]" [1]<[EMAIL PROTECTED]> wrote: In you example: Now your 1.6 GB/s reduced to 16MB/s or even worse just based on this factor. What did we show by this <> test? I thought that would prove the memory bandwidth is about 8Gbit/s

Re: packet drop with intel gigabit / marwell gigabit

2006-03-21 Thread Jin Guojun [VFFS]
You are fast away from the real world. This has been explained million times, just like I teach intern student every summer :-) First of all, DDR400 and 200 MHz bus mean nothing -- A DDR 266 + 500MHz CPU system can over perform a DDR 400 + 1.7 GHz CPU system. Another example: I 2 CPU wa

Re: packet drop with intel gigabit / marwell gigabit

2006-03-20 Thread Jin Guojun [VFFS]
OxY wrote: - Original Message - From: "Jin Guojun [VFFS]" <[EMAIL PROTECTED]> To: "OxY" <[EMAIL PROTECTED]> Cc: Sent: Monday, March 20, 2006 4:05 AM Subject: Re: packet drop with intel gigabit / marwell gigabit First let's clear the notat

Re: packet drop with intel gigabit / marwell gigabit

2006-03-19 Thread Jin Guojun [VFFS]
OxY wrote: - Original Message - From: "Jin Guojun (VFFS)" <[EMAIL PROTECTED]> To: "OxY" <[EMAIL PROTECTED]> Cc: "Chuck Swiger" <[EMAIL PROTECTED]>; Sent: Sunday, March 19, 2006 11:46 AM Subject: Re: packet drop with intel gigabit / mar

Re: packet drop with intel gigabit / marwell gigabit

2006-03-19 Thread Jin Guojun (VFFS)
OxY wrote: CPU utilization is 0% if apache is not running and 10-20%, when running and serving 30-40 concurrent downloads (traffic is 3-4MB/s on fxp0 interface) Is the number 3-4MB/s for per stream or the total for all 30-40 streams? Are these downloads sent to a disk? i measured the networ

Re: packet drop with intel gigabit / marwell gigabit

2006-03-18 Thread Jin Guojun [VFFS]
It is still not clear how you did measurement. Did FTP show such % drop? or Did you measure it by other tools? How did you measured incoming traffic? http://field.hu/netstat.txt shows 0 tcp packet drop. Anyway, the first thing first is to have CPU utilization when you see packet drop. This can

Re: mysql benchmarks

2005-12-13 Thread Jin Guojun [VFFS]
Peter Pentchev wrote: On Fri, Dec 09, 2005 at 08:05:37PM -0800, Jin Guojun [VFFS] wrote: David Xu wrote: Gustavo A. Baratto wrote: Since the last post just had freebsd numbers, I'm re-posting it including Linux as well. Both linux and freebsd numbers were taken fro

Re: very busy syslog server

2005-12-12 Thread Jin Guojun [VFFS]
Mathieu Arnold wrote: +-le 10/12/2005 14:58 -0800, Jin Guojun [VFFS] écrivait : | What is "netstat -m" output on your machine? 130 mbufs in use 128/8640 mbuf clusters in use (current/max) 0/24/2416 sfbufs in use (current/peak/max) 288 KBytes allocated to network 0 requests for sfbuf

Re: very busy syslog server

2005-12-10 Thread Jin Guojun [VFFS]
What is "netstat -m" output on your machine? Mathieu Arnold wrote: +-le 07/12/2005 12:44 +0200, Imri Zvik écrivait : | Hi! | | I'm trying to setup a syslog server to serve a large group of servers. | For the syslog daemon, I have chosen rsyslogd, and the backend is mysql (on | a different mac

Re: mysql benchmarks

2005-12-09 Thread Jin Guojun [VFFS]
David Xu wrote: Gustavo A. Baratto wrote: Since the last post just had freebsd numbers, I'm re-posting it including Linux as well. Both linux and freebsd numbers were taken from the same box: ... Can you try TSC timer on FreeBSD ? someone reported that using TSC timer boosts performance o

Re: very busy syslog server

2005-12-08 Thread Jin Guojun [VFFS]
Clear enough. em(4) should be able to handle this amount traffic without polling unless all syslog traffics come at the same time that could cause congested resource. That is why I want you to run the script to watch the CPU utilization when the drop happens. The average CPU use does NOT refle

Re: very busy syslog server

2005-12-08 Thread Jin Guojun [VFFS]
jaws wrote: What you need is more sockets available and a much larger sockbufs. Try adjusting the following parameters: net.inet.udp.maxdgram net.inet.udp.recvspace maxdgram has nothing to do with this on receiver side. If you want to play with this parameter, try to REDUCE it on sender side.

Re: Performance Intel Pro 1000 MT (PWLA8490MT)

2005-04-20 Thread Jin Guojun [VFFS]
Bruce Evans wrote: On Tue, 19 Apr 2005, Bosko Milekic wrote: My experience with 6.0-CURRENT has been that I am able to push at least about 400kpps INTO THE KERNEL from a gigE em card on its own 64-bit PCI-X 133MHz bus (i.e., the bus is uncontested) and that's A 64-bit bus doesn't seem to be ess