| 28 Jul 2025 |
jade_ | I have found a setiopolicy_np but idk what it does | 01:22:41 |
emily | I mean | 01:22:43 |
emily | I'm pretty sure you can just taskpolicy around the daemon invocation in the launchd service | 01:22:51 |
emily | for a quick test | 01:22:54 |
jade_ | or even just start a daemon outside launchd | 01:23:45 |
jade_ | lets try that | 01:23:47 |
jade_ |
To change the QoS of a pthread, call pthread_set_qos_class_self_np and pass it the new QoS to apply, as shown in Listing 10-9. Listing 10-9Changing the QoS of a pthread
pthread_set_qos_class_self_np(QOS_CLASS_BACKGROUND,0);
| 01:28:35 |
jade_ | yeah so that was simply untrue | 01:28:41 |
jade_ | you can just change your qos class | 01:28:57 |
emily | I think tasks and thread priorities are different. maybe. | 01:29:18 |
emily | might be wrong. | 01:29:29 |
emily | probably am wrong actually | 01:29:46 |
jade_ | i am waiting for lix to build as a benchmark before i go and clone xnu on this machine | 01:29:49 |
emily | btw | 01:29:53 |
emily | you know about Instruments, right? | 01:29:57 |
emily | you don't need to disable SIP to get a bunch of profiling data | 01:30:03 |
raitobezarius (DECT: 7248) | In reply to @jade_:matrix.org i am waiting for lix to build as a benchmark before i go and clone xnu on this machine how come you didn't clone xnu yet, i already cloned xnu | 01:31:19 |
emily | some people will do anything to avoid clicking three buttons in a nice GUI :p | 01:32:12 |
jade_ | new computer who dis | 01:32:24 |
jade_ | i have it on my work computer! | 01:32:29 |
raitobezarius (DECT: 7248) | :D | 01:32:32 |
raitobezarius (DECT: 7248) | In reply to @emilazy:matrix.org some people will do anything to avoid clicking three buttons in a nice GUI :p i use macOS exclusively over SSH | 01:32:45 |
raitobezarius (DECT: 7248) | I have my excuses | 01:32:47 |
jade_ | i don't want to click three buttons in a nice GUI and i want to be able to dtrace it if i start having a bad time | 01:32:53 |
emily | this is a good way to hate macOS | 01:33:01 |
jade_ | well we're all very good at that :) | 01:33:11 |
jade_ | I just happen to now have enough macs to be forced to care :P | 01:33:23 |
emily | the Instruments UI is basically a very refined UI around the DTrace scripts you'd end up writing for perf analysis already | 01:33:32 |
jade_ | mm | 01:33:42 |
emily | it can do system-wide profiling and stuff too | 01:33:57 |