Page MenuHomeFreeBSD

Allow UMA allocated memory to be freed when VNET jails are torn down.
ClosedPublic

Authored by rodrigc on Nov 20 2014, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 3 2024, 10:40 AM
Unknown Object (File)
Nov 25 2024, 8:16 AM
Unknown Object (File)
Nov 25 2024, 1:54 AM
Unknown Object (File)
Nov 24 2024, 8:58 PM
Unknown Object (File)
Sep 14 2024, 12:22 PM
Unknown Object (File)
Sep 7 2024, 8:15 PM
Unknown Object (File)
Sep 7 2024, 5:35 PM
Unknown Object (File)
Aug 21 2024, 10:25 PM

Details

Reviewers
rodrigc
alfred
bz
adrian
Group Reviewers
network
Summary

MFp4: @181627

Allow UMA allocated memory to be freed when VNET jails are torn down.

Originally based on patch by bz.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

rodrigc retitled this revision from to Allow UMA allocated memory to be freed when VNET jails are torn down..
rodrigc updated this object.
rodrigc edited the test plan for this revision. (Show Details)
rodrigc added reviewers: bz, alfred, adrian, network.

Interesting; TCP has the same behaviour. Why's that?

.. in fact, is this what UMA_ZONE_NOFREE means? My 30 second check of uma source + manpage says that the slabs are never returned back to the VM - but I haven't yet established whether this is just the case during paging, or whether the path through zone destroy also won't return the keg slabs back to the VM.

This may be safe, but I'd like to see a clear argument grounded in the revision history as to why that is true. Historically, this would not have been safe, which is why the flags are there.

(I may have made it safe during the network-stack locking work, but my recollection of the final state of things is a bit hazy, hence thinking a good spelunking is the right answer here.)

I agree with Robert. We need to know why this will work, because the diff doesn't tell us that.

Ok, I'll leave the comment here as well; in 2010(?) I had convinced myself that it would be ok and ran this for a while.
However the code has changed since (normal churn, UDP-Lite, blah bleu blupp) so we need to re-evaluate this.
For everything else, I think the discussion on net@ is more fruitful at the moment.

rodrigc retitled this revision from Allow UMA allocated memory to be freed when VNET jails are torn down. to Allow UMA allocated memory to be freed when VNET jails are torn down..Dec 2 2014, 4:01 PM
rodrigc edited edge metadata.
rodrigc retitled this revision from Allow UMA allocated memory to be freed when VNET jails are torn down. to Allow UMA allocated memory to be freed when VNET jails are torn down..
rodrigc added a subscriber: Unknown Object (MLST).

This patch is probably safe if limited to UDP.

This revision is now accepted and ready to land.Dec 6 2014, 3:06 AM