[Info-vax] How to obtain percentage of a given CPU consumed by a process

Johnny Billquist bqt at softjar.se
Mon Jun 6 08:51:03 EDT 2016


On 2016-06-04 09:40, lawrencedo99 at gmail.com wrote:
> On Wednesday, May 25, 2016 at 1:50:16 PM UTC+12, IanD wrote:
>> I'm looking for a way to find the CPU consumption for a given process on a given CPU...
>
> I remember once I brought a VAX virtually to its knees, while recording almost 0% CPU usage. Ask me how...

Thrash the virtual memory system? That's easy...
Write a program that just hits one byte on each page, and enough pages 
to not be in the working set. The machine will be very busy just paging...

Although this is much more fun on a Unix system, which don't have 
working set quotas, so you just squeeze all other processes out of 
memory, making life *really* miserable.

And I think there are VAX instructions that are very good at thrashing 
the system...

Or did you have some other fun solution?

	Johnny




More information about the Info-vax mailing list