Skip to content

Conversation

kyoguan
Copy link
Contributor

@kyoguan kyoguan commented Dec 2, 2020

No description provided.

eg. recvmsg, the buf address may be in mprotect, the kernel would return err.
We have to hook the system call and retry :(.
@kyoguan kyoguan closed this Dec 2, 2020
@kyoguan kyoguan reopened this Dec 2, 2020
@emeryberger emeryberger requested a review from bpowers November 19, 2021 18:30
Copy link
Member

@bpowers bpowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kyoguan! Thanks for this, and sorry for the very long delay.

I cherry-picked two of the commits that were clear bug fixes (the FD leak and recv rely bits).

For making fork faster, I believe that not using the bitmap will undo the physical memory savings we gain by meshing -- in other words I think the 8x speed improvement comes at the cost of losing our reclaimed/meshed memory. I think ideally we would have a unit test here to verify the RSS of the child after fork. Maybe I am misunderstanding though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants