On Fri, Feb 3, 2023 at 12:45 PM Stephen Hemminger
wrote:
>
> On Tue, 6 Dec 2022 10:05:09 -0500
> Mike Pattrick wrote:
>
> > +
> > +static __rte_always_inline void
> > +mem_set_dump(__rte_unused void *ptr, __rte_unused size_t size,
> > __rte_unused bool enable)
> > +{
> > +#ifdef MADV_DONTDUMP
>
On Tue, 6 Dec 2022 10:05:09 -0500
Mike Pattrick wrote:
> +
> +static __rte_always_inline void
> +mem_set_dump(__rte_unused void *ptr, __rte_unused size_t size, __rte_unused
> bool enable)
> +{
> +#ifdef MADV_DONTDUMP
> + if (madvise(ptr, size, enable ? MADV_DODUMP : MADV_DONTDUMP) == -1) {
Currently if an application wants to include shared hugepages in
coredumps in conjunction with the vhost library, the coredump will be
larger than expected and include unneeded virtual machine memory.
This patch will mark all vhost huge pages as DONTDUMP, except for some
select pages used by DPDK.
3 matches
Mail list logo