sniffer

2001-05-17 Thread gis88530
Dear all, Do you know that why tcpdump will loss some packet passing in the subnet? Sorry, I mean that if there are 99Mbps packet in the ethernet, but tcpdump just find out 80Mbps packet. Why? What thing affect packet loss? Thanks Tom - To unsubscribe from this list: send the line

kernel benchmark

2001-03-15 Thread gis88530
Hi, I use kernprof+gprof to measure the 2.2.16 kernel, but the scale is mini-second. So I use do_gettimeofday( ) kernel function call to measure the latency. (This function support micro-second scale.) Moreover, I use SmartBits packet generator to generate the specific network traffic load.

pkt_sched.h

2001-03-16 Thread gis88530
Hello, I have two questoins regarding the pkt_sched.h file. -- (1) The pkt_sched.h file have following lines #define PSCHED_GETTIMEOFDAY 1 #define PSCHED_JIFFIES 2 #define PSCHED_CPU 3 #define PSCHED_CLOCK_SOURCE PSCHED_JIFFIES Does it means that the

measurement

2001-03-16 Thread gis88530
Hello, I use PSCHED_GET_TIME(stamp) to measure the delay of some kernel function. function_name( ) { int psched_clock_scale; psched_time_t stamp1, stamp2; psched_tdiff_t delay; PSCHED_GET_TIME(stamp1); PSCHED_GET_TIME(stamp2); delay=PSCHED_TDIFF(stamp2, stamp1); printk(KERN_INFO "[%ld], [%ld],

Re: icmp and port

2001-04-19 Thread gis88530
nformation? Because I think original packets are in private hosts, masquerade gateway can't get the original packet. If I am wrong, please feel free to advice me. Thanks in advance. Cheers, Tom - Original Message - From: "Andreas Ferber" [EMAIL PROTECTED] To: "gis88530"

I can't find out the answer

2001-04-21 Thread gis88530
Hello, I want to calculate the total memory usage of kernel. I wonder that we just need to add these(*1) in slabinfo or we need to add each line(*1 and *2) in slabinfo. Thanks. AND I know the size of size-512 is 512 bytes, but I want to know the size of tcp_tw_bucket, tcp_open_request, etc. How

BPF and SKB

2001-04-22 Thread gis88530
Hello, I have study the BPF, and I know it calls Socket Filtering in Linux. (user) | (buffer) | (BPF)(origin protocol stack) | | (Data Link Layer) Does the buffer above BPF is skb_buff? If yes, origin protocol stack will get packet from it.

memory usage

2001-04-10 Thread gis88530
Hello, I can use "ps" to see memory usage of daemons and user programs. I can't find any memory information of kernel with "top" and "ps". Do you know how to take memory usage information of kernel ? Thanks for your help. Cheers, Tom - To unsubscribe from this list: send the line

Re: memory usage

2001-04-10 Thread gis88530
Thanks. cat /proc/slabinfo look like as follows. Each row have three columns. Could you tell me what do they mean in second and third column? kmem_cache29 42 pio_request0 0 My second question is: We can find memory usage of daemon(apache) by ps or top. e.g. apache

card report no resource

2001-04-12 Thread gis88530
Hello, I use RedHat 6.2 with 2.2.16 kernel and 4 NICs in my lab at school. 3 of NICs are private network 172.x.x.x, and the other is public 140.o.o.o But when I use this box, I got following messages... card3: response no resource card3: Too much work at interrupt, status = 0x4050 card2:

swap memory

2001-04-16 Thread gis88530
Hello, Does linux kernel swap data out to disk? or It just reside in the physical memory. or You could give me a hint. Thanks a lot. Cheers, Tom - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

icmp and port

2001-04-17 Thread gis88530
Hello, I have study the code in ip_masq.c, and I found that icmp packet use source address, destination address, source port and destination port to hash into masquerade table. Do icmp packets have port information? I have print the port information with printk, but I can't find out the answer

sniffer

2001-05-17 Thread gis88530
Dear all, Do you know that why tcpdump will loss some packet passing in the subnet? Sorry, I mean that if there are 99Mbps packet in the ethernet, but tcpdump just find out 80Mbps packet. Why? What thing affect packet loss? Thanks Tom - To unsubscribe from this list: send the line

Re: icmp and port

2001-04-19 Thread gis88530
port information? Because I think original packets are in private hosts, masquerade gateway can't get the original packet. If I am wrong, please feel free to advice me. Thanks in advance. Cheers, Tom - Original Message - From: "Andreas Ferber" <[EMAIL PROTECTED]> To: &

I can't find out the answer

2001-04-21 Thread gis88530
Hello, I want to calculate the total memory usage of kernel. I wonder that we just need to add these(*1) in slabinfo or we need to add each line(*1 and *2) in slabinfo. Thanks. AND I know the size of size-512 is 512 bytes, but I want to know the size of tcp_tw_bucket, tcp_open_request, etc. How

BPF and SKB

2001-04-22 Thread gis88530
Hello, I have study the BPF, and I know it calls Socket Filtering in Linux. (user) | (buffer) | (BPF)(origin protocol stack) | | (Data Link Layer) Does the buffer above BPF is skb_buff? If yes, origin protocol stack will get packet from it.

kernel benchmark

2001-03-15 Thread gis88530
Hi, I use kernprof+gprof to measure the 2.2.16 kernel, but the scale is mini-second. So I use do_gettimeofday( ) kernel function call to measure the latency. (This function support micro-second scale.) Moreover, I use SmartBits packet generator to generate the specific network traffic load.

pkt_sched.h

2001-03-16 Thread gis88530
Hello, I have two questoins regarding the pkt_sched.h file. -- (1) The pkt_sched.h file have following lines #define PSCHED_GETTIMEOFDAY 1 #define PSCHED_JIFFIES 2 #define PSCHED_CPU 3 #define PSCHED_CLOCK_SOURCE PSCHED_JIFFIES Does it means that the

measurement

2001-03-16 Thread gis88530
Hello, I use PSCHED_GET_TIME(stamp) to measure the delay of some kernel function. function_name( ) { int psched_clock_scale; psched_time_t stamp1, stamp2; psched_tdiff_t delay; PSCHED_GET_TIME(stamp1); PSCHED_GET_TIME(stamp2); delay=PSCHED_TDIFF(stamp2, stamp1); printk(KERN_INFO "[%ld], [%ld],

memory usage

2001-04-10 Thread gis88530
Hello, I can use "ps" to see memory usage of daemons and user programs. I can't find any memory information of kernel with "top" and "ps". Do you know how to take memory usage information of kernel ? Thanks for your help. Cheers, Tom - To unsubscribe from this list: send the line

Re: memory usage

2001-04-10 Thread gis88530
Thanks. cat /proc/slabinfo look like as follows. Each row have three columns. Could you tell me what do they mean in second and third column? kmem_cache29 42 pio_request0 0 My second question is: We can find memory usage of daemon(apache) by ps or top. e.g. apache

card report no resource

2001-04-12 Thread gis88530
Hello, I use RedHat 6.2 with 2.2.16 kernel and 4 NICs in my lab at school. 3 of NICs are private network 172.x.x.x, and the other is public 140.o.o.o But when I use this box, I got following messages... card3: response no resource card3: Too much work at interrupt, status = 0x4050 card2:

swap memory

2001-04-16 Thread gis88530
Hello, Does linux kernel swap data out to disk? or It just reside in the physical memory. or You could give me a hint. Thanks a lot. Cheers, Tom - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

icmp and port

2001-04-17 Thread gis88530
Hello, I have study the code in ip_masq.c, and I found that icmp packet use source address, destination address, source port and destination port to hash into masquerade table. Do icmp packets have port information? I have print the port information with printk, but I can't find out the answer