DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] rte_zmalloc() returning non-zeroed memory on FreeBSD
@ 2016-08-10 23:30 Verkamp, Daniel
  2016-08-10 23:39 ` Verkamp, Daniel
  2016-08-11  7:05 ` Thomas Monjalon
  0 siblings, 2 replies; 5+ messages in thread
From: Verkamp, Daniel @ 2016-08-10 23:30 UTC (permalink / raw)
  To: users

Hi,

It seems that with DPDK 16.07, rte_zmalloc() and related functions no
longer return zeroed memory reliably on FreeBSD.

I notice that commit b78c9175118f7d61022ddc5c62ce54a1bd73cea5 ("mem: do
not zero out memory on zmalloc") removed the explicit memset() that used
to ensure the buffer was zeroed; its log message says:

"Zeroing out memory on rte_zmalloc_socket is not required anymore since
all allocated memory is already zeroed."

However, I don't see how this is guaranteed (at least for FreeBSD), and
it is not true in practice.  I've attached a minimized reproducer program - running it twice in a row fails reliably for me.

Is there a missing step in FreeBSD, or is it a more general problem for
other platforms?

Thanks,
-- Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-16 22:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-10 23:30 [dpdk-users] rte_zmalloc() returning non-zeroed memory on FreeBSD Verkamp, Daniel
2016-08-10 23:39 ` Verkamp, Daniel
2016-08-11  7:05 ` Thomas Monjalon
2016-08-15 17:23   ` [dpdk-users] [dpdk-dev] " Harris, James R
     [not found]     ` <8b8e180e-a996-ef6e-cbf8-23028a194224@intel.com>
2016-08-16 22:54       ` Harris, James R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).