See also vec_capacity(x), vec_len(x) * sizeof (x[0)), vec_new (type,nitems), and so forth.
If you force the vector infra to repeatedly copy [gb worth of] data, it will take time. D. From: [email protected] <[email protected]> On Behalf Of [email protected] Sent: Monday, June 18, 2018 8:23 AM To: [email protected] Subject: Re: [vpp-dev] vec_validate Long Delay #vpp Hi dave I am using 64 bit image (-DCLIB_VEC64=1) and as I said, I can get vectors with large size (more than 5GB) My problem is not the size of vector it is time delay for allocation. when I using vec_validate to allocate huge memory size it has a very very long delay to response, I don't get core dump for loss of memory but take a very long time, I want to reduce or eliminate this time delay for memory allocation and before memory allocation how can I calculate memory usage of vector -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9638): https://lists.fd.io/g/vpp-dev/message/9638 Mute This Topic: https://lists.fd.io/mt/22400853/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
