Sponsored Content
Top Forums UNIX for Dummies Questions & Answers To find processor speed & memory in HP Unix 10.2 Post 14262 by augustinep on Tuesday 29th of January 2002 04:36:25 PM
Old 01-29-2002
Could you advise me which option under SAM, I can get this, as I could not figure it out.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix & Processor compatibility

subject is self explanitory... can i install Unix on a system w/ and AMD processor (1 Reply)
Discussion started by: goliath3021
1 Replies

2. UNIX Desktop Questions & Answers

Where can I find a Unix OS that will run on a 386 processor?

Hey, can anyone recommend a URL (or website) where I can download a basic (or old) UNIX OS that will run on an ancient laptop that has a 386 processor, 4MB of RAM and a 40MB harddrive? Your help and suggestions are much appreciated! :confused: (4 Replies)
Discussion started by: methudrez
4 Replies

3. Solaris

processor speed in mHZ

how do i tell the processor speed on solaris 8? (2 Replies)
Discussion started by: csaunders
2 Replies

4. Solaris

Processor and memory supports

HI i'am Giancarlo D. Jabon student from AMA Computer University is anyone among all of you who knows the maximum processor and memory supports in Sun Solaris 10 Thanks !!!! (3 Replies)
Discussion started by: giancarlodjabon
3 Replies

5. HP-UX

How to find the memory in HP-Unix?

Hi, I have a HP-Unix server, version B.11.23. Can someone tell me how to find out the physical memory & virtual memory (swap) in my server? & what is Page fault? & is there any limitation for page fault? Thank you. Your help is appreciated. (7 Replies)
Discussion started by: Amol21
7 Replies

6. Shell Programming and Scripting

Processor and Its speed

Hi I need a command to know how many processors are available and what is their speed in UNIX. Thanks (2 Replies)
Discussion started by: diksha2207
2 Replies

7. UNIX for Advanced & Expert Users

How to find out memory & cpu usage of a process

Hi, By using time command we can determine the execution time of a process or command. bash-2.04$ time ls -l total 0 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file1 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file2 real 0m0.002s user 0m0.000s sys 0m0.001s... (5 Replies)
Discussion started by: learn more
5 Replies

8. Solaris

Check Solaris Zones Processor & Memory allocations

Hi, I am a newbee in the solaris administration. My question is how to 1. Check the total CPU and memory of a global zone. 2. Check the allocated CPU and memory for each of the residing non-global zones. I have already tried prtconf which gives the following output /usr/sbin/prtconf... (4 Replies)
Discussion started by: poga
4 Replies
SAM_OVERVIEW(8) 				    Corosync Cluster Engine Programmer's Manual 				   SAM_OVERVIEW(8)

NAME
sam_overview - Overview of the Simple Availability Manager OVERVIEW
The SAM library provide a tool to check the health of an application. The main purpose of SAM is to restart a local process when it fails to respond to a healthcheck request in a configured time interval. During sam_initialize(3), a duplicate copy of the process is created using the fork(3) system call. This duplicate process copy contains the logic for executing the SAM server. The SAM server is responsible for requesting healthchecks from the active process, and controlling the lifecycle of the active process when it fails. If the active process fails to respond to the healthcheck request sent by the SAM server, it will be sent a user configurable signal (default SIGTERM) to request shutdown of the application. After a configured time interval, the process will be forcibly killed by being sent a SIGKILL signal. Once the active process terminates, the SAM server will cre- ate a new active process. The Simple Availability Manager is meant to be used in conjunction with the cpg service. Used together, it is possible to restart a cpg process that fails healthchecking during operation. The main features of SAM include: o A configurable recovery policy. o A configurable time interval for health check operations. o A notification via signal before recovery action is taken. o A mechanism to indicate to the application the number of times an active process has been created by the SAM server. o Both application driven health checking and event driven health checking. Initializing SAM The SAM library is initialized by sam_initialize(3). sam_initalize(3) may only be called once per process. Calling it more then once has undefined results and is not recommended or tested. Setting warning callback User configurable signal (default SIGTERM) is sent to the application when a recovery action is planned. The application can use the sig- nal(3) system call to monitor for this signal. There are no special constraints on what SAM apis may be called in a warning callback. After time_interval expires, a SIGKILL signal is sent to the active process to force its termination. Registering the active process The active process is registered with SAM by calling sam_register(3). This function should only be called one time in a process. After a recovery action is taken, the new active process will begin execution at the next line of code in a user process after sam_register(3). Enabling event driven healthchecking Two types of healthchecking are available to the user. The first model is one where the user application healthchecks during its normal operation. It is never requested to healtcheck, and if the active process doesn't respond within the time interval, the process will be restarted. A more useful mechanism for healthchecking is event driven healthchecking. Because this model is directed by the SAM server, It isn't nec- essary to guess or add timers to the active process to signal a healthcheck operation is successful. To use event driven healthchecking, the sam_hc_callback_register(3) function should be executed. Quorum integration SAM has special policies (SAM_RECOVERY_POLICY_QUIT and SAM_RECOVERY_POLICY_RESTART) for integration with quorum service. This policies changes SAM behaviour in two aspects. o Call of sam_start(3) blocks until corosync becomes quorate o User selected recovery action is taken immediately after lost of quorum. Storing user data Sometimes there is need to store some data, which survives between instances. One can in such case use files, databases, ... or much sim- pler in memory solution presented by sam_data_store(3), sam_data_restore(3) and sam_data_getsize(3) functions. Confdb integration SAM has policy flag used for confdb system integration (SAM_RECOVERY_POLICY_CONFDB). If process is registered with this flag, new confdb object PROCESS_NAME:PID is created with following keys: o recovery - will be quit or restart depending on policy o poll_period - period of health checking in milliseconds o last_updated - Timestamp (in nanoseconds) of the last health check. o state - state of process (can be one of registered, started, failed, waiting for quorum) Object is automatically deleted if process exits with stopped health checking. Confdb integration with corosync wathdog can be used in implicit and explicit way. Implicit way is achieved by setting recovery policy to QUIT and let process exit with started health checking. If this happened, object is not deleted and corosync watchdog will take required action. Explicit way is usefull for situations, when developer can deal with some non-fatal fall of application. This mode is achieved by setting policy to RESTART and using SAM same as without Confdb integration. If real fail is needed (like too many restarts at all, per/sec, ...), it's possible to use sam_mark_failed(3) and let corosync watchdog take required action. BUGS
SEE ALSO
sam_initialize(3), sam_data_getsize(3), sam_data_restore(3), sam_data_store(3), sam_finalize(3), sam_mark_failed(3), sam_start(3), sam_stop(3), sam_register(3), sam_warn_signal_set(3), sam_hc_send(3), sam_hc_callback_register(3) corosync Man Page 21/05/2010 SAM_OVERVIEW(8)
All times are GMT -4. The time now is 03:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy