Peter said: > What's a simple way to measure the working set of a process or thread. > I'd like to check it on my project. I took the easy way out and used a synthetic application: threads repeatedly walk private arrays, and the working set size is defined to be the array size. In real life it's not so easy! One thing to do would be to borrow or write some instrumentation code that uses the P6 MSRs - these include rdtsc as well as counts of misses to various caches, number of pipeline stalls, etc. - by checking appropriate MSRs at the right times you could put together a pretty accurate picture of what's going on in the caches. Not sure how to distinguish between different kinds of misses. Maybe run a single thread in isolation (is this possible?) and then together with others. Any additional misses experienced by this thread in a multithreaded environment can be assumed to be caused by context switches. Documentation for the MSRs (model-specific registers) can be found at the Intel site. John
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... Jay Ts
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... Vincent Touquet
- Re[2]: [linux-audio-dev] Performance and Elegance? (Was: H... Rick Burnett
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... John Regehr
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... Jay Ts
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... rob
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... Jay Ts
- Re[2]: [linux-audio-dev] Performance and Elegance? (Was: H... Rick Burnett
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... Joe Pfeiffer
- Re: [linux-audio-dev] Performance and Elegance? (Was: High... Peter Hanappe
- Re: [linux-audio-dev] Re: costs of IPC John Regehr
- Re: [linux-audio-dev] Re: costs of IPC Steve Harris
- Re: [linux-audio-dev] Re: costs of IPC Abramo Bagnara
- Re: [linux-audio-dev] Re: costs of IPC Paul Davis
- Re: [linux-audio-dev] Re: costs of IPC Abramo Bagnara
- Re: [linux-audio-dev] Re: costs of IPC Steve Harris
- Re: [linux-audio-dev] Re: costs of IPC Paul Davis
- Re: [linux-audio-dev] Re: costs of IPC Steve Harris
- Re: [linux-audio-dev] Re: costs of IPC Paul Davis
- Re: [linux-audio-dev] Re: costs of IPC Steve Harris
- Re: [linux-audio-dev] Re: costs of IPC Kai Vehmanen
