Changeset 4bdc4c2


Ignore:
Timestamp:
02/09/15 14:16:32 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
47321fd
Parents:
136c19e
Message:

DPDK - Allocate memory from the same NUMA node as the main thread
Otherwise this seems to cause some problems when attempting to
allocate the memory. This may be a DPDK bug?

For best performance the main thread CPU core should be
choosen such that it is on the same NUMA node as the NIC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r136c19e r4bdc4c2  
    829829                       8, sizeof(struct rte_pktmbuf_pool_private),
    830830                       rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL,
    831                        0, MEMPOOL_F_SP_PUT | MEMPOOL_F_SC_GET);
     831                       rte_socket_id(), MEMPOOL_F_SP_PUT | MEMPOOL_F_SC_GET);
    832832
    833833        if (format_data->pktmbuf_pool == NULL) {
     
    860860     */
    861861    ret = rte_eth_tx_queue_setup(format_data->port, format_data->queue_id,
    862                         format_data->nb_tx_buf, SOCKET_ID_ANY, &tx_conf);
     862                        format_data->nb_tx_buf, rte_socket_id(), &tx_conf);
    863863    if (ret < 0) {
    864864        snprintf(err, errlen, "Intel DPDK - Cannot configure TX queue on port"
     
    869869    /* Initialise the RX queue with some packets from memory */
    870870    ret = rte_eth_rx_queue_setup(format_data->port, format_data->queue_id,
    871                             format_data->nb_rx_buf, SOCKET_ID_ANY,
     871                            format_data->nb_rx_buf, rte_socket_id(),
    872872                            &rx_conf, format_data->pktmbuf_pool);
    873873    if (ret < 0) {
Note: See TracChangeset for help on using the changeset viewer.