Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!aslam From: aslam@m.cs.uiuc.edu Newsgroups: comp.sys.encore Subject: CPU timing while using EPT - how? Message-ID: <37500009@m.cs.uiuc.edu> Date: 18 Oct 89 03:09:00 GMT Lines: 36 Nf-ID: #N:m.cs.uiuc.edu:37500009:000:1392 Nf-From: m.cs.uiuc.edu!aslam Oct 17 22:09:00 1989 Gentle readers, I have two inquiries: 1. How can I time programs when using the EPT (Encore Parallel Threads)? When I used to use the multi-tasking routines, task_init, task_create etc., I used the routines "timer_init" and "timer_get" to time my code. These are all documented in section 3P of the man pages. EPT provides a much more comfortable programming environment than the multi-tasking package; I would like to determine what this comfort is costing me in terms of multi-cpu times. 2. Is it possible to install an exception handler for memory alloc disasters? This is when EPT aborts with a trace like the following: ---------------------------------- Memory allocation statistics free: 0 255 122 48 29 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 used: 0 1 6 16 3 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Total in use: 18512, total free: 18352 THREAD(disaster): pid 30359 (0): out of memory IOT trap -------------------------------------------- I always check the value returned by malloc but this disaster seems to happen while malloc is doing its job. What I would like is that I trap such a disaster and free memory that I am not using and then continue. I am using UMAX 4.2, R3.2.0 on a 10 processor Multimax. Sohail Aslam Department of Computer Science University of Illinois arpa aslam@cs.uiuc.edu usenet uiucdcs!aslam bitnet aslam@uiucdcs.BITNET