Re: How to avoid packet drop

2013-10-04 Thread Abu Rasheda
> I am running a tool that is a packet generator.
> With that tool i am able to achieve line/link rate on my 1Gbps network.
> I have two queries
>
> Query 1) When i run the same tool on 10Gbps network i am able to achieve
> only 5Gbps rate.( by network i mean i have two machines with Centos 6.4
> connected back to back.)
>

If your question is why you are not able to get line rate on 10 Gb
interface, try faster machines. Dell T110 can do line rate easily and Dell
T620 can do 2 line rates (for 10 Gb) simultaneously

Query 2) When i run the packet generator on the 1Gbps link or 10Gbps link i
> see a packet drop by kernel ( result of tcpdump -i eth2).How can i minimize
> the packet drop?
>

If you are referring to packet drop by tcpdump (when you ctrl-c it), this
packet is not dropped by kernel stack, but by tcpdump filter. For packets
dropped by stack you can look at sats in /proc or look in ifconfig for
packets dropped by the hardware.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


i2c_add_driver and i2c_new_device handling

2013-10-04 Thread Chetan Nanda
Hi,

I am writting a driver to control an i2c device.
Is it possible to call 'i2c_add_driver' and 'i2c_new_device' back to back
from module init function?

Currently i am getting error 'Bug scheduling while atomic' on calling
i2c_new_device.
Any pointer to debug furthe will be very helpful.

Thanks,
Chetan Nanda
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: kexec

2013-10-04 Thread leo kirotawa
Sorry, silly question, but did you try as root? kexec load tries to put the
knew kernel on memory and after that tries a syscall to kexec_load to
finish with a kexec_reboot, since it handles with mem and syscalls maybe
just as a root you will run it properly

 Also have that ke...@lists.infradead.org list.

[]'s


On Thu, Oct 3, 2013 at 10:05 AM, Dmitry Kolesov  wrote:

> Hello.
>
> Could anybody help with kexec. I cannot find some informaton from google.
> I try to use kexec for fast boot new kernel but I have error below:
>
> # kexec -l /boot/vmlinuz-3.12.0-rc1+
> --initrd=/boot/initramfs-3.12.0-rc1+.img --command-line="$(cat
> /proc/cmdline)"
> kexec_load failed: Operation not permitted
> entry   = 0x24eff5790 flags = 3e
> nr_segments = 3
> segment[0].buf   = 0x7fd169783210
> segment[0].bufsz = 505250
> segment[0].mem   = 0x24d00
> segment[0].memsz = 1413000
> segment[1].buf   = 0xbc3770
> segment[1].bufsz = 4310
> segment[1].mem   = 0x24efef000
> segment[1].memsz = 5000
> segment[2].buf   = 0xbba650
> segment[2].bufsz = 90e0
> segment[2].mem   = 0x24eff5000
> segment[2].memsz = b000
>
> KEXEC option in the config is enabled.
>
> How can I decid this problem?
>
> Regards,
> Dmitry
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
--
LeƓnidas S. Barbosa (Kirotawa)
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


RE: [PCIe spec question] How to get PCI express link up / link down notifications?

2013-10-04 Thread Rajat Jain
Hi,

I found the answer to my original question. I found the "Data Link Layer State 
Changed Enable" bit in the Slot Control register which seems to provide 
interrupt on link state changes.

6.7.3.3. Data Link Layer State Changed Events 
==
The Data Link Layer State Changed event provides an indication that the state 
of the Data Link Layer Link Active bit in the Link Status register has changed. 
Support for Data Link Layer State Changed events and software notification of 
these events are required for hot-plug capable Downstream Ports. If this event 
is supported, the Port sets the status field associated with the event
5 when the value in the Data Link Layer Link Active bit changes.

Thanks a bunch!

Rajat


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


How to avoid packet drop

2013-10-04 Thread Robert Clove
Hi All,

I am running a tool that is a packet generator.
With that tool i am able to achieve line/link rate on my 1Gbps network.
I have two queries

Query 1) When i run the same tool on 10Gbps network i am able to achieve
only 5Gbps rate.( by network i mean i have two machines with Centos 6.4
connected back to back.)

Query 2) When i run the packet generator on the 1Gbps link or 10Gbps link i
see a packet drop by kernel ( result of tcpdump -i eth2).How can i minimize
the packet drop?


Thanks
Clove
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies