Sponsored Content
Operating Systems Solaris How to simulate light weight process (LWP)? Post 302794207 by seafan on Monday 15th of April 2013 12:17:52 PM
Old 04-15-2013
Question How to simulate light weight process (LWP)?

Hello,

We had a problem on a Solaris system (SunOS 5.10) that hit LWP limit and caused fork 11 error. Now we need to come up with a script to simulate and reproduce that scenario. What would be a simple and valid way to generate lots of Light Weight Processes?

Thanks,

Jay
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

LWP module ?

my host run on a Free bsd server and i have a cgi script that requires LWP module, but i my host say that that module is installed, so i would like to know if the is a command because i have telnet access to know if the module or which modules are installed on my account (itīs that the script donīt... (4 Replies)
Discussion started by: Beto
4 Replies

2. Solaris

oracle process and LWP on solaris 8 box

Hi all, Without oracle tunning I understand that oracle processes always run on a single CPU at a time (the prstat output always show 1 CPU number) even on multi-processor hardware. Is it correct? Regards, (1 Reply)
Discussion started by: solea
1 Replies

3. Linux

Script to simulate hanging process

I want to create a script to simulate a process that hangs to test a java application. My java app executes a system command, which can also be executing scripts, etc. Any ideas on such a script? The java code is: Runtime rt = Runtime.getRuntime(); Process p = rt.exec("sh... (4 Replies)
Discussion started by: brendan76
4 Replies

4. Infrastructure Monitoring

Light-weight alternative to `df` (without SNMP)

Overview: I'm looking for a way to get usage data for all mount points (UFS,VxFS & NFS) on a Solaris system. I'm starting with `df` but would like to find something that might be more light-weight. Background: Using SNMP is not an option in this case, instead I need to use basic built-in... (2 Replies)
Discussion started by: seg
2 Replies

5. Shell Programming and Scripting

authentication using LWP

Can some one tell me how to post the username and password using perl LWP. An example is sufficient.. (0 Replies)
Discussion started by: Anjan1
0 Replies

6. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

7. Shell Programming and Scripting

Building Light weight Distro

Don't know whether this is right category for this question. I request please consider it and advice correct cotegory if required. Here goes my question. I want to build a distribution using debian/ubuntu. Currently i'm refering LinuxFromScratch.org, which is asking me a space for around 10gb. I... (3 Replies)
Discussion started by: kg_gaurav
3 Replies
_lwp_kill(2)							System Calls Manual						      _lwp_kill(2)

NAME
_lwp_kill() - send a signal to an LWP (Lightweight Process) SYNOPSIS
DESCRIPTION
The function sends a signal to the LWP target_lwp. The target_lwp can be in any process. is the LWP equivalent of kill(). The signal to be sent is specified by sig and is either one from the list given in signal(5), or 0. If sig is (the null signal), error checking is performed but no signal is actually sent. This can be used to check the validity of the LWP target_lwp. If the LWP target_lwp is in another process, the real or effective user ID of the sending process must match the real or saved user ID of the receiving process unless the effective user ID of the sending process is a user who has appropriate privileges. If the signal action for sig specifies termination, stop or continue, the entire process is terminated, stopped or continued, respectively. Uncatchable signals (for example, SIGKILL and SIGSTOP) cannot be sent to an LWP in the init process. Signals cannot be sent to kernel daemon threads and helper threads created internally by the HP-UX system. RETURN VALUE
Upon successful completion, returns with a value of 0; otherwise, it returns an error number to indicate the error. The variable is NOT set if an error occurs. ERRORS
If any of the following conditions occur, the function fails and returns the corresponding error number: sig is neither a valid signal number nor zero. sig is SIGKILL or SIGSTOP and target_lwp is an LWP in the process with pid (proc1). The caller does not have the necessary privileges. No LWP can be found with the identity target_lwp. WARNINGS
In general, the POSIX pthread interfaces should be used by multi-threaded applications. This system call may be used directly only when the application has a need to operate on LWPs in another process. This system call may result in undefined behavior if the usage is mixed with POSIX pthread APIs. SEE ALSO
kill(1), _lwp_self(2), kill(2), sigaction(2), pthread_kill(3T), signal(5). _lwp_kill(2)
All times are GMT -4. The time now is 09:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy