xnu
How do I allocate memory buffers which may be reclaimed by the OS for caching in a Mac OS X kernel extension?
Based on documentation and xnu source I\'ve read, I understand that Mac OS X caches file I/O using the Unified Buffer Cache (UBC). The UBC grows as big as it can based on available RAM, but UBC pages[详细]
2023-02-06 05:13 分类:问答Can I find the library that created a named OSMallocTag?
I use the allocations instrument to measure heap usage in my iOS app. I find that a significant amount of memory is allocated in a region with the tag name \"Memory Tag 70\", and I would like to know[详细]
2023-01-31 05:23 分类:问答CPU Affinity Masks (Putting Threads on different CPUs)
I have 4 threads, and I am trying to set thread 1 to run on CPU 1, thread 2 on CPU 2, etc. However, when I run my code below, the affinity masks are returning the correct values, but when I do a sched[详细]
2022-12-25 04:01 分类:问答