[osol-discuss] Measuring average system load with millisecond resolution

2011-02-27 Thread Kishore Kumar Pusukuri
Hi, Using either uptime(1) command or getloadavg(3) system call, we can measure average system load with minutes resolution. However, I would like to measure average system load (average number of active threads) with milliseconds resolution. Could you suggest me a way, please? Thank you --

[osol-discuss] Dramatic Performance Degradation with Binding

2011-02-11 Thread Kishore Kumar Pusukuri
Hi, I am running a multithreaded application with 20 threads on my 24-core AMD Opteron (ccNUMA) machine running Solaris 10. When I run the application with threads binding to cores using pbind (one-thread to one-core), its performance is dramatically degrading. It is around 80% performance

[osol-discuss] Dramatic Performance Degradation with Binding

2011-02-11 Thread Kishore Kumar Pusukuri
Hi, I am running a multithreaded application with 20 threads on my 24-core AMD Opteron (ccNUMA) machine running Solaris 10. When I run the application with threads binding to cores using pbind (one-thread to one-core), its performance is dramatically degrading. It is around 80% performance

[osol-discuss] Running OpenMP program

2011-02-02 Thread Kishore Kumar Pusukuri
Hi, I have been compiling and running OpenMP parallel programs successfully so far on my OpenSolaris.2009.10 machine. However I am unable to run one program with more than one thread(lwp). Please see details of the program below. Please let me know if there is anything wrong with the

[osol-discuss] system traps with FX scheduling policy

2011-01-28 Thread Kishore Kumar Pusukuri
Hi, I am playing with FX scheduling policy with different time-quanta on SPECOMP multithreaded programs. I am using prstat -Lm to analyze the effect of different time-quanta on the performance of the programs. Most of the programs experience system traps (TRP) with FX 10ms time-quantum.

[osol-discuss] Microbenchmarks for synchronization mechanisms

2011-01-26 Thread Kishore Kumar Pusukuri
Hi, Could you help me to find/develop microbenchmarks for stressing synchronization mechanisms of OpenSolaris? Thank you. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

[osol-discuss] plockstat(1) along with ppgsz(1)

2011-01-26 Thread Kishore Kumar Pusukuri
Hi, I have been using plockstat to analyze user-space lock-contention for multithreaded programs. I am also optimizing the performance of those programs using larger pages (using ppgsz(1)). I am unable to get anydata (output) from plockstat(1) when I run the program along with ppgsz.

[osol-discuss] Fixed-Priority Scheduling Policy vs Round-Robin Scheduling

2010-11-16 Thread Kishore Kumar Pusukuri
Does Fixed-Priority Scheduling Policy function similar to Round-Robin scheduling with fixed time-quantum (somewhat like SCHED_RR in Linux) ? Please let me know. Thank you. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing

[osol-discuss] Change scheduling class of a thread (lwp) of a process.

2010-11-12 Thread Kishore Kumar Pusukuri
Hi, We can change the scheduling class of a process (either single threaded or multithreaded) using priocntl(1) utility. However, I would like to use different scheduling classes for different threads (lwps) of a process on OpenSolaris.2009.06. But there is no such an option with priocntl(1)

[osol-discuss] Calculating the size of shared memory of a multi-threaded application

2010-10-15 Thread Kishore Kumar Pusukuri
Since heap and stack represent private memory, can I say that the shared memory (among the 16 threads) in this process is: 307008 - (size of heap + size of stacks) = 307008 - [306528 + (16 * 4)]? 25908: ./process -timing -threads 16 -lastframe 100 Address Kbytes RSSAnon Locked Mode

[osol-discuss] Shared-memory Size of an application

2010-10-14 Thread Kishore Kumar Pusukuri
Hi, I used pmap -x to find the shared memory size of a multithreaded application. The output of this command is: . Address Kbytes RSSAnon Locked Mode Mapped File 08045000 12 12 12 - rwx--[ stack ] . . . FEFFB000 8 8 8 -

[osol-discuss] Changing Memory Placement Policies through a C program

2010-09-21 Thread Kishore Kumar Pusukuri
Hi, I know how to change memory placement policies using mdb. For example, the following is the usage to apply Round Robin policy instead of the default First-Touch policy: $ pfexec mdb -kw ... lgrp_mem_default_policy/W 5 . However, could you tell me how to do the same through a C program,

[osol-discuss] Using madvise(3C)

2010-08-27 Thread Kishore Kumar Pusukuri
Hi, I am trying to play with madvise on my AMD machine running OpenSolaris.2009.06. However, getting the following error when I used to compile the below program with /usr/sfw/bin/g++. Please help me to resolve this. 457: error: `madvise' undeclared (first use this function) 457: error:

[osol-discuss] Using madvise(3C)

2010-08-27 Thread Kishore Kumar Pusukuri
Hi, I am trying to play with madvise on my AMD machine running OpenSolaris.2009.06. However, getting the following error when I used to compile the below program with /usr/sfw/bin/g++. Please help me to resolve this. I am not sure whether the usage of madvise is correct or not? Please let me

Re: [osol-discuss] Measuring cost of TLB misses

2010-08-27 Thread Kishore Kumar Pusukuri
Thank you, Marty. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

[osol-discuss] Using collect utility

2010-08-27 Thread Kishore Kumar Pusukuri
Hi, I am trying to play with the utility collect for studing TLB misses of a multi-threaded program running on my AMD multi-core machine equipped with OpenSolaris.2009.06. However, the program is hanging (with and also without umask) on when I used collect utility. Please find the prstat -m

Re: [osol-discuss] Measuring cost of TLB misses

2010-08-24 Thread Kishore Kumar Pusukuri
Thank you, Bart. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

[osol-discuss] How to change Memory Placement Optimization tunable parameters using mdb

2010-08-23 Thread Kishore Kumar Pusukuri
Hi, Please let me know how to change MPO tunable parameters using mdb on my AMD Opteron machine running OpenSolaris 2009.06. For example, how to change lgrp_mem_default_policy to LGRP_MEM_POICY_RANDOM. -- This message posted from opensolaris.org ___

[osol-discuss] Measuring cost of TLB misses

2010-08-20 Thread Kishore Kumar Pusukuri
Hi, I am able to measure TLB miss-rate of a multi-threaded application running on my multi-core AMD Opteron machine by reading performance monitoring event counters using cpustat utility. However, I would like to measure the amount of time spent on TLB misses? Specifically, I am looking a way

[osol-discuss] Performance Degradation with 1GB Pages for Heap

2010-08-20 Thread Kishore Kumar Pusukuri
Hi, My AMD Opteron supports 4KB, 2MB and 1GB page sizes. I observed that there is performance improvement (reduced elapsed time) for some multi-threaded applications when I used 2MB page-size for heap. These applications need around 650MB heap (it reads a huge file of around 650MB size).

[osol-discuss] libmtmalloc vs libumem

2010-08-13 Thread Kishore Kumar Pusukuri
Hi, I am able to understand how libmtmalloc works from the documentation of libmtmalloc.c source file. However, I am unable to find proper documentation for libumem. Could someone provide the key differences between libmtmalloc and liumem, please? Please also provide me links to the

[osol-discuss] Change segvn cache size

2010-08-13 Thread Kishore Kumar Pusukuri
Hi, I observed that one multi-threaded application is generating so many cross-calls (xcalls) on my AMD multi-core machine. A snapshot of stack trace is shown below. I think that this is because of segvn activity, i.e. unmapping the page and generating cross-call activity to maintain MMU level

[osol-discuss] Mapping the kernel heap with large pages

2010-08-13 Thread Kishore Kumar Pusukuri
Hi, One of my applications is spending around 90% of total execution time reading a huge file using read system call. I though that I could improve the performance of the application by increasing the page size for kernel heap. I know that I can increase page size of application heap using

[osol-discuss] Segmentation fault when using libhoard memory allocat and getting core dump

2010-08-10 Thread Kishore Kumar Pusukuri
I am trying to see the impact of different memory allocators on multi-threaded workloads on my AMD machine running OpenSolaris 2009.06. I successfully used libmtmalloc and libumem, however, it is giving core dump (through SEG fault) when I used libhoard_32.so. However, I didn't get any errors

[osol-discuss] Using multiple page sizes

2010-08-09 Thread Kishore Kumar Pusukuri
I would like to see the impact of different page sizes on the performance of multi-threaded applications. However, the pagesize -a command is producing only 3 possible page sizes including the default 4Kb on my AMD machine (shown below). Are these only page sizes I can use? (or) Is there anyway

[osol-discuss] Changing page coloring algorithm using mdb/adb

2010-08-06 Thread Kishore Kumar Pusukuri
Hi, I would like to see the impact of different page coloring algorithms on my AMD machine running OpenSolaris 2009.06. According to the book Solaris Internals - Solaris 10 and OpenSolaris (page no: 515), I have tried to change the page coloring algorithm on the fly using mdb -kw, but not