Git Product home page Git Product logo

Comments (4)

KeithWiles avatar KeithWiles commented on July 28, 2024

I do not see why increasing it to 24 or 32 would be a problem. Will look into it, but it may increase the size of some structures to cover another cacheline as I was thinking 32 would be good.

from cndp.

KeithWiles avatar KeithWiles commented on July 28, 2024

I did not spot any problems increasing the size, but please verify it thanks.

Original size:

CNDP-cli:/> info size

sizeof(struct pktmbuf_s)         :   64
            CNE_PKTMBUF_HEADROOM :  192
  		Default size 2048 dataroom size 1,792
sizeof(struct cnet_metadata)     :   64
               unused space in metadata structure 24
sizeof(struct in_caddr)          :   20
sizeof(struct cnet)              :  192
sizeof(struct pcb_entry)         :  128
sizeof(struct pcb_key)           :   40
sizeof(struct msghdr)            :   56
sizeof(struct sockaddr)          :   16
sizeof(struct sockaddr_storage)  :  128
sizeof(struct stk_s)             :  352 *     2(netifs) = 704
sizeof(struct netif)             :  640 *     8(netifs) = 5120
sizeof(struct drv_entry)         :  128 *     4(netifs) = 512
sizeof(struct rt4_entry)         :   64 *  1024(netifs) = 65536
sizeof(struct rt6_entry)         :  128 *     0(netifs) = 0
sizeof(struct arp_entry)         :   16 *  1024(netifs) = 16384
sizeof(struct nd6_cache_entry)   :   64 *     0(netifs) = 0
sizeof(struct ipv4_entry)        :  192
sizeof(struct ipv6_entry)        :  192

  Total memory used 88832 bytes

sizeof(struct protosw_entry)     :   40
sizeof(struct seg_entry)         :  120
                 sizeof(__m128i) :   16
                 sizeof(__m256i) :   32
sizeof(struct vec_hdr)           :   16

New sizes:

CNDP-cli:/> info size

sizeof(struct pktmbuf_s)         :   64
            CNE_PKTMBUF_HEADROOM :  192
  		Default size 2048 dataroom size 1,792
sizeof(struct cnet_metadata)     :   64
               unused space in metadata structure 24
sizeof(struct in_caddr)          :   20
sizeof(struct cnet)              :  192
sizeof(struct pcb_entry)         :  128
sizeof(struct pcb_key)           :   40
sizeof(struct msghdr)            :   56
sizeof(struct sockaddr)          :   16
sizeof(struct sockaddr_storage)  :  128
sizeof(struct stk_s)             :  352 *     2(netifs) = 704
sizeof(struct netif)             :  640 *     8(netifs) = 5120
sizeof(struct drv_entry)         :  128 *     4(netifs) = 512
sizeof(struct rt4_entry)         :   64 *  1024(netifs) = 65536
sizeof(struct rt6_entry)         :  128 *     0(netifs) = 0
sizeof(struct arp_entry)         :   16 *  1024(netifs) = 16384
sizeof(struct nd6_cache_entry)   :   64 *     0(netifs) = 0
sizeof(struct ipv4_entry)        :  192
sizeof(struct ipv6_entry)        :  192

  Total memory used 88832 bytes

sizeof(struct protosw_entry)     :   40
sizeof(struct seg_entry)         :  120
                 sizeof(__m128i) :   16
                 sizeof(__m256i) :   32
sizeof(struct vec_hdr)           :   16

from cndp.

KeithWiles avatar KeithWiles commented on July 28, 2024

Please checkout the latest PR and let me know if it fixes the problem.

from cndp.

nwaples avatar nwaples commented on July 28, 2024

Yep it fixes the problem.
Thanks

from cndp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.