[dpdk-dev] disable hugepages

2016-11-10 Thread Keren Hochman
I tried using the following dpdk options:
--no-huge --vdev eth_pcap0 ,rx_pcap=/t1,tx_pcap=/t2
*It's worked but the number of elements is limited, although the machine
has enough free memory. *rte_mempool_create is failed when I'm trying to
allocate more memory. Is there any limitation on the memory beside the
machine?

*Thanks, Keren *

On Wed, Nov 9, 2016 at 4:50 PM, Olivier Matz  wrote:

> Hi Keren,
>
> On 11/09/2016 03:40 PM, Keren Hochman wrote:
> > On Wed, Nov 9, 2016 at 3:40 PM, Christian Ehrhardt <
> > christian.ehrhardt at canonical.com> wrote:
> >
> >>
> >> On Wed, Nov 9, 2016 at 1:55 PM, Keren Hochman <
> >> keren.hochman at lightcyber.com> wrote:
> >>
> >>> how can I create mempool without hugepages?My application is running
> on a
> >>> pcap file so no huge pages is needed ?
> >>>
> >>
> >> Not sure if that is what you really want (Debug use only), but in
> general
> >> no-huge is available as EAL arg
> >>
> >> From http://pktgen.readthedocs.io/en/latest/usage_eal.html :
> >>
> >> EAL options for DEBUG use only:
> >>   --no-huge   : Use malloc instead of hugetlbfs
> >>
> > I need this option only for testing. How can I use rte_mempool_create if
> I
> > use --no-huge?
>
> When using --no-huge, the dpdk libraries (including mempool) allocate
> its memory in standard memory. Just keep in mind the physical addresses
> will be wrong, so this memory cannot be given to hw devices.
>
> Regards,
> Olivier
>


[dpdk-dev] disable hugepages

2016-11-09 Thread Keren Hochman
I need this option only for testing. How can I use rte_mempool_create if I
use --no-huge?
Thank you, Keren

On Wed, Nov 9, 2016 at 3:40 PM, Christian Ehrhardt <
christian.ehrhardt at canonical.com> wrote:

>
> On Wed, Nov 9, 2016 at 1:55 PM, Keren Hochman <
> keren.hochman at lightcyber.com> wrote:
>
>> how can I create mempool without hugepages?My application is running on a
>> pcap file so no huge pages is needed ?
>>
>
> Not sure if that is what you really want (Debug use only), but in general
> no-huge is available as EAL arg
>
> From http://pktgen.readthedocs.io/en/latest/usage_eal.html :
>
> EAL options for DEBUG use only:
>   --no-huge   : Use malloc instead of hugetlbfs
>
>
>
>


[dpdk-dev] disable hugepages

2016-11-09 Thread Keren Hochman
Hi,
how can I create mempool without hugepages?My application is running on a
pcap file so no huge pages is needed ?
Thanks.


[dpdk-dev] Running 2 process on the same machine

2016-11-08 Thread Keren Hochman
Also, I can't understand how to define socket-mem. I did not see anything
related to hugepages in /etc/sysctl.conf. Can i mount hugepages to 2
different dirs instead and use --huge-dir ?
Thank you.





















On Tue, Nov 8, 2016 at 11:44 AM, Keren Hochman  wrote:

> Thank you for your response, I still can not run the 2 process together.
> if I add --no-pci to one process it can replace white and black lists
> right?
>
> Thanks, keren
>
> On Tue, Nov 8, 2016 at 12:36 AM, Wiles, Keith 
> wrote:
>
>>
>> > On Nov 7, 2016, at 7:28 AM, Keren Hochman 
>> wrote:
>> >
>> > Hi,
>> > I need to run 2 process that uses dpdk on the same machine. One uses
>> dpdk
>> > drivers, and the other just read from a pcap file.  If I disable
>> hugepages
>> > in the second process rte_mempool_create fails. What is the correct way
>> to
>> > handle this?
>>
>> If you look at the two scripts in Pktgen pktgen-master.sh and
>> pktgen-slave.sh these two scripts setup two instances of pktgen on the same
>> machine. Plus you can read the README.md file.
>>
>> http://dpdk.org/browse/apps/pktgen-dpdk/refs/
>>
>> You have to make sure you have enough memory (huge pages) allocated for
>> both instances to run.
>>
>> Then use ?file-prefix XX to give each instance a different prefix for the
>> huge page files in /dev/hugepages if that is the location of the files on
>> your system. I would remove any files in that directory to free up the
>> memory.
>>
>> Use the ?socket-mem to allocate the correct amount of memory for each
>> instances this way DPDK does not consume all the pages for a given instance.
>>
>> Make sure you blacklist the ports you do not want on the first instance
>> using -b option and then blacklist the ports from the first instance while
>> allowing the other ports to be used on the second one.
>>
>> That should do it for most cases.
>>
>> >
>> > Thanks, Keren
>>
>> Regards,
>> Keith
>>
>>
>


[dpdk-dev] Running 2 process on the same machine

2016-11-08 Thread Keren Hochman
Thank you for your response, I still can not run the 2 process together.
if I add --no-pci to one process it can replace white and black lists
right?

Thanks, keren

On Tue, Nov 8, 2016 at 12:36 AM, Wiles, Keith  wrote:

>
> > On Nov 7, 2016, at 7:28 AM, Keren Hochman 
> wrote:
> >
> > Hi,
> > I need to run 2 process that uses dpdk on the same machine. One uses dpdk
> > drivers, and the other just read from a pcap file.  If I disable
> hugepages
> > in the second process rte_mempool_create fails. What is the correct way
> to
> > handle this?
>
> If you look at the two scripts in Pktgen pktgen-master.sh and
> pktgen-slave.sh these two scripts setup two instances of pktgen on the same
> machine. Plus you can read the README.md file.
>
> http://dpdk.org/browse/apps/pktgen-dpdk/refs/
>
> You have to make sure you have enough memory (huge pages) allocated for
> both instances to run.
>
> Then use ?file-prefix XX to give each instance a different prefix for the
> huge page files in /dev/hugepages if that is the location of the files on
> your system. I would remove any files in that directory to free up the
> memory.
>
> Use the ?socket-mem to allocate the correct amount of memory for each
> instances this way DPDK does not consume all the pages for a given instance.
>
> Make sure you blacklist the ports you do not want on the first instance
> using -b option and then blacklist the ports from the first instance while
> allowing the other ports to be used on the second one.
>
> That should do it for most cases.
>
> >
> > Thanks, Keren
>
> Regards,
> Keith
>
>


[dpdk-dev] Running 2 process on the same machine

2016-11-07 Thread Keren Hochman
Hi,
I need to run 2 process that uses dpdk on the same machine. One uses dpdk
drivers, and the other just read from a pcap file.  If I disable hugepages
in the second process rte_mempool_create fails. What is the correct way to
handle this?

Thanks, Keren


[dpdk-dev] Run 2 different testpmd from the same machine

2016-09-12 Thread Keren Hochman
Hi,
I tried to run 2 instances of testpmd from the same machine but received a
message:  Cannot get hugepage information when I tried to run the second
instance. Is there a way to disable hugepages or allow to instances to
access it ? Thanks. keren


[dpdk-dev] imissed in rte_pmd_pcap

2016-09-12 Thread Keren Hochman
Hello,
in the dpdk pcap driver, the imissed indicator of rte_eth_stats structure
is not increasing even when we miss packets since there are no available
mbufs. I looked at the code and I saw that nothing increase it in the pcap
driver code ( as opposed to other drivers where it's being promoted)
Is there a reason for that? Is there other way to follow missed packets
when using libpcap ?
Thanks, Keren


[dpdk-dev] support BCM5719 driver

2016-08-30 Thread Keren Hochman
Hi, 

I tried to bind BCM5719 driver to DPDK compatible driver: (I tried both to 
uio_pci_generic and igb_uio)

Network devices using DPDK-compatible driver

:03:00.2 'NetXtreme BCM5719 Gigabit Ethernet PCIe' drv=uio_pci_generic 
unused=tg3,igb_uio
:03:00.3 'NetXtreme BCM5719 Gigabit Ethernet PCIe' drv=igb_uio 
unused=tg3,uio_pci_generic

But when I ran from the dpdk example: link_status_interrupt I received an error 
No ethernet port. 

(When I tried to bind I350 Gigabit Network Connection it worked.

Thank you, Keren



[dpdk-dev] Permanently binding NIC ports with DPDK drivers

2016-08-25 Thread Keren Hochman
Hi,
I there a way to permanently bind a nic port when using DPDK drier with
kernel < 3.6 ? (In this kernel VFIO driver is not supported)?
Thanks, Keren


[dpdk-dev] Error: unbind failed

2016-08-21 Thread Keren Hochman
Hello, 
I installed dpdk on ubuntu VM. when I tried to bind the device to the driver I 
received the following error:
/dpdk-devbind.py  --bind=uio_pci_generic eth3
Error: bind failed for :02:02.0 - Cannot bind to driver uio_pci_generic
Error: unbind failed for :02:02.0 - Cannot open /sys/bus/pci/drivers//unbind
I?m not looking for best performance on VM. Any ideas why I received this error 
? 
Thanks. 



[dpdk-dev] DPDK with VMXNET3

2016-08-21 Thread Keren Hochman
Hi, 
I saw you removed from the git VMXNET3 user map. does this driver does not 
support anymore in dpdk? thanks