On Thu, Dec 23, 2010 at 6:38 AM, 陳韋任 <che...@iis.sinica.edu.tw> wrote:
> Hi, folks
>
>  I have a couple of questions about perfmon internal mechanisms.
>
>  First, I have a function called "process_buffer" to process the
> buffer when the buffer overflows. What if the buffer overflows *again*
> while the "process_buffer" function does not finish its job?
>
When you get the buffer full notification in your program, monitoring
is stopped. You have to re-activate using pfm_restart().

>  Second, if I have a few per-thread perfmon context attaching to
> different threads, are those samplings stored in one buffer? Or
> there are per-thread buffer storing each thread's sampling?
>
There is a sampling buffer per perfmon session (pfm_create_context).
A session can only be attached to one thread at a time. Thus, the
buffer is private to each thread.

>  Thanks!
>
> Regards,
> chenwj
>
> --
> Wei-Ren Chen (陳韋任)
> Parallel Processing Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to