{ "root_post_id": "2072135292115427728", "posts": [ { "post_id": "2072134509089144888", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "Working on the portable thread scheduling priority interface. Windows is a bit nicer by default, one can increase the scheduling priority without admin and there is a AvSetMmThreadCharacteristics() / AvSetMmThreadPriority() hack for \"Pro Audio\" scheduling needs.", "timestamp": "2026-07-01 01:45:40", "media_urls": [], "reply_to_id": null, "quote_of_id": null, "metrics": { "reply_count": 2, "repost_count": 1, "like_count": 9, "view_count": 1131 } }, { "post_id": "2072135292115427728", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "Linux by default doesn't allow any increase in scheduling priority. Users need to manually setup special user|group with elevated rights. Also system calls that try elevated scheduling don't clamp, instead they fail -EPREM if out of bounds. So all around a pain in the ass.", "timestamp": "2026-07-01 01:48:46", "media_urls": [ "https://pbs.twimg.com/media/HMGz-64W4AABeaH?format=png&name=orig" ], "reply_to_id": "2072134509089144888", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 3, "view_count": 381 } }, { "post_id": "2072136089070961073", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "I'm a little lazy right now and don't feel like trying SteamOS big picture mode to see what the default ulimits are. Curious what they allow.", "timestamp": "2026-07-01 01:51:56", "media_urls": [], "reply_to_id": "2072135292115427728", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 3, "view_count": 298 } }, { "post_id": "2072147378480566273", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "Linux priority workarounds\n(a.) Use getrlimit() to get {soft,hard} limits\n(b.) Use setrlimit() to set 'soft=hard' limit\n(c.) Then set priority or nice based on new soft limit", "timestamp": "2026-07-01 02:36:48", "media_urls": [ "https://pbs.twimg.com/media/HMG-UCRXIAEKbdj?format=png&name=orig", "https://pbs.twimg.com/media/HMG-zRxWwAAWtI4?format=png&name=orig" ], "reply_to_id": "2072136089070961073", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 3, "view_count": 78 } }, { "post_id": "2072147765157638479", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "I don't do one-time global priority maximums, just in case someone sudo's higher priority hard limit dynamically it should pickup the new limit.", "timestamp": "2026-07-01 02:38:20", "media_urls": [], "reply_to_id": "2072147378480566273", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 2, "view_count": 318 } }, { "post_id": "2072149707107787035", "author": "NOTimothyLottes", "handle": "NOTimothyLottes", "text": "Also while on setrlimit, I also bump up the RLIMIT_MEMLOCK to it's maximum just in case before the mlockall().", "timestamp": "2026-07-01 02:46:03", "media_urls": [ "https://pbs.twimg.com/media/HMHBGTPXwAA_axg?format=png&name=orig" ], "reply_to_id": "2072147765157638479", "quote_of_id": null, "metrics": { "reply_count": 1, "repost_count": 0, "like_count": 1, "view_count": 307 } } ], "source_url": "https://x.com/NOTimothyLottes/status/2072135292115427728" }