the pagesize is 64KB,
the online cpu number is 256.
the rx_buf_len is ICE_RXBUF_2048.
fllow the source code,
ice_vsi_cfg()
---->ice_vsi_cfg_rxqs()
{
...
ice_vsi_cfg_frame_size(vsi);----pagesize < 8192 or pagesize > 8192
ice_for_each_rxq(vsi, i) {
int err = ice_vsi_cfg_rxq(vsi->rx_rings[i]);
...
}
ice_alloc_rx_bufs
---->ice_alloc_mapped_page
---->dev_alloc_pages(ice_rx_pg_order(rx_ring));
So, will be alloce 2(one card, two functions dev) multiplied by 256 (min
msix/online cpus) multiplied by 2048 (revice queue pairs) multiplied by 64K(
the pagesize) .
if the pagesize is 16KB or 64KB , the queue pairs need more less or not . and
how many queue pairs will be ok.
At 2022-06-21 11:14:36, "Fujinaka, Todd" <[email protected]> wrote:
>How many queue pairs do you have allocated?
>
>Todd Fujinaka
>Software Application Engineer
>Ethernet Products Group
>Intel Corporation
>[email protected]
>
>-----Original Message-----
>From: yankun <[email protected]>
>Sent: Monday, June 13, 2022 8:08 PM
>To: [email protected]
>Subject: [E1000-devel] alloc too much memory for the
>driver[ice-5.8.0/ice-1.6.7]
>
>Dear,
> I have a Ethernet controller, with the device information ,
>I had test the ice-1.5.8 and ice-1.6.7, when insmod the kernel module , the
>driver will alloc about 64GB memory.
>the dmesg out:
>thanks.
>不要浪费生命!
>_______________________________________________
>E1000-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/e1000-devel
>To learn more about Intel Ethernet, visit
>https://forums.intel.com/s/topic/0TO0P00000018NbWAI/intel-ethernet
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel Ethernet, visit
https://forums.intel.com/s/topic/0TO0P00000018NbWAI/intel-ethernet