--------
In message <CAJV_h0YVCRfTOFk=6n3h9jnxnrxm05ht2pqkyj-fy-lgfu1...@mail.gmail.com>
, Federico Schwindt writes:

>We use calloc in many places, I do wonder how many of them do really need
>it. The downside of using calloc when is not really needed is that by
>zeroing the memory you end up with resident memory and not virtual, which
>in turn might lead to swapping.

This is almost always intentional, as we generally do not over-allocate.

The exception is the malloc stevedore where we do.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to