Re: [RANT][PATCH] sched_ext: Fix stale fair load weight after renice under SCX

From: Tejun Heo

Date: Fri Dec 04 2026 - 12:27:36 EST


Hello,

On Fri, Dec 04, 2026 at 12:16:18PM -0500, Steven Rostedt wrote:
> Thanks, I added that, but that still requires me to pass it a message id,
> as I don't believe it can browse the list.

FWIW, this is what my agent does for email / lkml accesses:

https://github.com/htejun/kernel-agent-workflows/blob/main/mail/lore-thread.md
https://github.com/htejun/kernel-agent-workflows/blob/main/mail/setup.md
https://github.com/htejun/kernel-agent-workflows/blob/main/mailbox/inbox.md

The first one fetches threads with b4. The second has "lei q" for searching
lore without a message id, and the last one is for reading a local mailbox
instead. When lore serves the JS challenge to a web fetch, it falls back to
a headless browser which runs the challenge.

The headless browser is the distro's chromium driven by a small node
script, with puppeteer-core, puppeteer-extra and
puppeteer-extra-plugin-stealth installed from npm. The gist of it is:

const puppeteer = require("puppeteer-extra");
puppeteer.use(require("puppeteer-extra-plugin-stealth")());

(async () => {
const browser = await puppeteer.launch({
headless: "new",
executablePath: "/usr/bin/chromium",
});
const page = await browser.newPage();
await page.goto(process.argv[2], { waitUntil: "networkidle0" });
/* wait for the Anubis challenge page to go away */
await page.waitForFunction(() => !document.title.includes("not a bot"));
console.log(await page.evaluate(() => document.body.innerText));
await browser.close();
})();

That gets through to lore's search pages too, e.g.
https://lore.kernel.org/all/?q=s%3A%22stale+fair+load+weight%22, so the
agent can look for earlier discussions without a message id.

Thanks.

--
tejun