Skip to content

mm: modify rss field only through deticated method#1363

Open
chl337 wants to merge 1 commit intoQuarkContainer:mainfrom
chl337:rss_fix
Open

mm: modify rss field only through deticated method#1363
chl337 wants to merge 1 commit intoQuarkContainer:mainfrom
chl337:rss_fix

Conversation

@chl337
Copy link
Copy Markdown
Collaborator

@chl337 chl337 commented May 19, 2025

No description provided.

Comment thread qlib/kernel/memmgr/mm.rs
pt.curRSS -= r.Len();
self.pagetable.write()
.pt.MUnmap(r.Start(), r.Len())?;
self.RemoveRssLock(&r);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this produces redundant pagetable lock acquire/release.

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