Re: problem in Network device driver.

2009-04-21 Thread Vishal Thanki
Its handled by tcp stack within linux kernel. If you want to take a look at the code, then see open linux/net/ipv4/tcp.c and look at tcp_sendmsg(). Vishal Devesh Sharma wrote: One more query I have in my mind, let's say user wants to transfer 1MB data (callling send() only once), and socket bu

Re: problem in Network device driver.

2009-04-21 Thread Devesh Sharma
One more query I have in my mind, let's say user wants to transfer 1MB data (callling send() only once), and socket buffer size is set to 4096 for example, how and who handles packaging of data? On Wed, Apr 22, 2009 at 10:56 AM, Devesh Sharma wrote: > On Tue, Apr 21, 2009 at 9:48 PM, Michael Bliz

Re: problem in Network device driver.

2009-04-21 Thread Vishal Thanki
Following link explains usage of "oprofile" http://www.serpentine.com/blog/2006/12/17/make-linux-performance-analysis-easier-with-oprofile/ Vishal Devesh Sharma wrote: On Tue, Apr 21, 2009 at 9:48 PM, Michael Blizek wrote: Hi! On 18:37 Tue 21 Apr , Devesh Sharma wrote: Hello mi

Re: problem in Network device driver.

2009-04-21 Thread Devesh Sharma
On Tue, Apr 21, 2009 at 9:48 PM, Michael Blizek wrote: > Hi! > > On 18:37 Tue 21 Apr , Devesh Sharma wrote: >> Hello michi, Sorry for late reply. comments are inline: > > ... > >> > Is there any packet loss on the link? What does "ping -f" and >> packet loss is very less..after data transf

Re: stuck in netlink/connector

2009-04-21 Thread Prashant Bhole
Hi, I have corrected my mistake. I was not able to receive messages from kernel to user space using netlink_broadcast because I didn't subscribe the group using setsockopt() in the user space program. connector use netlink_broadcast, hence same case with the connector. thanks, On Tue, Apr 21, 20

Re: kernel timers do not expire

2009-04-21 Thread Mulyadi Santosa
On Tue, Apr 21, 2009 at 2:24 PM, Lal wrote: > jiffies is increasing properly (I verified using a test module). > The system is running kernel 2.4.21 > > I suspect some buggy timeout handler function is not returning, that > has stopped other timers to expire . But is there a way to confirm > this?

Cannot compile my Xtables module

2009-04-21 Thread Bartek Dolewski
Hi there, I guess this is more "c programming trouble" than kernel code but maybe I`m wrong. I`ve started with Netfilter/Xtables stuff so I write below code using some resources. When I type "make" I can see these error messages: LD /media/ubuntu/home/bartek/ModuĊ‚y/iptables/built-in.o CC [M

Re: problem in Network device driver.

2009-04-21 Thread Michael Blizek
Hi! On 18:37 Tue 21 Apr , Devesh Sharma wrote: > Hello michi, Sorry for late reply. comments are inline: ... > > Is there any packet loss on the link? What does "ping -f" and > packet loss is very less..after data transfer in TBits I observer > on 5 tx packet drops > > "ping -f -s 4096"

Re: problem in Network device driver.

2009-04-21 Thread Michael Blizek
Hi! On 14:31 Tue 21 Apr , Jeffrey Cao wrote: > On Tue, Apr 21, 2009 at 06:49:13AM +0200, Michael Blizek wrote: > > > > > CPU causes problems only when you test with small packets, say 64 bytes > > > packets. Small packets will cause more frequent interrupt for the CPU. > > > If you can pass

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Srdjan Todorovic
Hi, 2009/4/21 Jeffrey Cao : > Out of Memory: Kill process 429 (sh) score 297 and children. > Out of memory: Killed process 429 (sh). > How to find out which process eat up the memory? Any clues? Your shell seems to have caused the OOM killer to do its work... Hope that helps, Srdjan -- To uns

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Vishal Thanki
Jeffrey Cao wrote: On 2009-04-21, Vishal Thanki wrote: Fire "top" command which will display which application is using how much memory. Vishal, thank you. But after oom-kill, the memory recovers to the normal state. All processes behave well. Thats because the OOM killer may have

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Jeffrey Cao
On 2009-04-21, Vishal Thanki wrote: > Fire "top" command which will display which application is using how > much memory. Vishal, thank you. But after oom-kill, the memory recovers to the normal state. All processes behave well. Jeffrey -- To unsubscribe from this list: send an email with "un

Re: problem in Network device driver.

2009-04-21 Thread Devesh Sharma
Hello michi, Sorry for late reply. comments are inline: On Sat, Apr 18, 2009 at 12:23 AM, Michael Blizek wrote: > Hi! > > On 14:01 Fri 17 Apr , Devesh Sharma wrote: >> Hi michi, >> Its is using a TCP/IP protocol, program is Intel's MPI benchmark IMB, >> and CPU is surely not a bottelneck beca

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Vishal Thanki
Fire "top" command which will display which application is using how much memory. Jeffrey Cao wrote: Hi there, On an embedded network device, while traffic passes on, I execute some command (my APP) to get some network statistic information, then oom-killer kicks in. >From the message, sever

Re: Is drivers' open() method get called while fork or dup fd?

2009-04-21 Thread yihect
Thanks for your generosity and your patience, I realy benefit from your great help. >and ultimately, userspace open()-ing of the driver will definitely map >to (through sys_open->do_sys_open->do_filp_open()->dv1394_open()) the >per-device's open() API. this means THAT EVERY PROCESS that want to

oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Jeffrey Cao
Hi there, On an embedded network device, while traffic passes on, I execute some command (my APP) to get some network statistic information, then oom-killer kicks in. >From the message, several processes invoke oom-killer in order: 1) inetd 2) klogd 3) my daemon APP After each oom-killer is invok

Re: stuck in netlink/connector

2009-04-21 Thread Thierry
hi, sorry but here (GMT+2), it is just the morning. Soo I have put three versions of my code: unicast_wait.tgz => is a basic code taken from the website www.linuxjournal.com/article/7356, it works but it is only for understanding netlink socks. threads.tgz => similar implementation but with a th

Re: kernel timers do not expire

2009-04-21 Thread Lal
On Mon, Apr 20, 2009 at 11:36 PM, Mulyadi Santosa wrote: > On Mon, Apr 20, 2009 at 1:03 PM, Lal wrote: >> I have a Linux system, running a couple of third party kernel modules. >> The functionality seems all right except a rare case where kernel >> timers stop expiring. When the system reaches th

RE: When the driver probe functions will be called!!!

2009-04-21 Thread Rajat Jain
Hello, > > Hi, i have built-in the module into kernel.I am seeing that > "smc911x_init" is calling properly.I have placed print messages in > "probe" function, but those prints are not coming on the UART. > > Is this (smc911x) a PCI bus based hardware? It looks like your system hasn't detect