Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Disadvantage of background processes Post 302338111 by unni.raj on Monday 27th of July 2009 05:47:27 AM
Old 07-27-2009
Disadvantage of background processes

Hi,

Inorder to improve the performance, I am trying to execute my command as a background process..

For eg: To zip large numbers of files present in a directory instead of using a single process, i do follow the below method:

gunzip -c [source_file] > [destination_path]/[zip_file_name] &
--------------------------------------------------------------
Plz tell me about the disadvantages of the above method... I mean in terms of memory and other related stuffs...

Thanks in advance,
Unni
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Background processes

How do you capture the return code from a background process? I am dumping data to a fifo and then processing it in a c program. I need to know that the sql finished successfully to ensure no missing data. Thanks. ex. sqlplus user/password < get_data.sql > data_fifo.txt & bin/process_data... (2 Replies)
Discussion started by: korndog
2 Replies

2. Shell Programming and Scripting

Running two processes in background

hi there, here's what i need in my korn-shell: ... begin korn-shell script ... nohup process_A.ksh ; nohup process_B.ksh & ... "other stuff" ... end lorn-shell script in plain english i want process A and process B to run in the background so that the script can continue doing... (6 Replies)
Discussion started by: jacob_gs
6 Replies

3. Programming

Background processes in a dummy shell...

Hey guys, I am writing a very simple dummy shell in C++ and I am having trouble getting a process to run in the background. First of all, the shell has to recognize when I input a "&" at the end of the command, then it has to stick it in the background of the shell. I understand that if I want... (6 Replies)
Discussion started by: icer
6 Replies

4. Linux

Question about background processes

Hi! First of all, let me warn you I'm quite new to the world of LINUX and Operating Systems understanding, so that's why I pose these newbie and stupid qustions... Anyway, I'm trying to build my own simple shell in C and I'm getting some problems in implementing the background process ('&')... (10 Replies)
Discussion started by: neimaD
10 Replies

5. SuSE

oracle background processes

I have installed oracle 10g on suse sles9. I do not see oracle background processes. ps -ef|grep ora_ gives me environment variables junk. ps -ef|grep smon does not show anything however database is up and running. Any idea how to tweak that? (1 Reply)
Discussion started by: vijayasawant
1 Replies

6. Shell Programming and Scripting

Keep a certain number of background processes running

I've got a bit of code I'm trying to work on... What i want to happen is ... at all times have four parallel mysql dump and imports running. I found the follow code snippet on the forum and modified it to work by starting four concurrent processes but it waits until all four are done before... (7 Replies)
Discussion started by: dgob123
7 Replies

7. Solaris

About running processes in background

Hi, I need to establish a procedure that will start an application in background each time my remote Solaris server is (re)started. This would be a kind of daemon. I am no sysadmin expert, so I am looking for pointers. How should I proceed? What are the main steps? Thanks, JVerstry (9 Replies)
Discussion started by: JVerstry
9 Replies

8. Shell Programming and Scripting

Background Processes

Ok guys so I have my first dummy shell almost done except for one tiny part: I do not know how to run a process in the background, from the code! I already know how to do that in a normal shell: $ program & However, no clue when it comes to how to program that thing. :eek: A very... (2 Replies)
Discussion started by: Across
2 Replies

9. Shell Programming and Scripting

Need help on background processes

Hi, I have a schell script parent.ksh from which I am calling three background processes a.ksh,b.ksh and c.ksh. Once these three processes completes the next step in parent.ksh should execute. How to achieve this? Please help me.... Thanks... (1 Reply)
Discussion started by: ravinunna
1 Replies

10. UNIX for Advanced & Expert Users

List all background processes

How do I list the process in a Unix based system which are running in background? The following are options that I'm aware of, but they may not be appropiate. a. using ps -ef , and getting records of processes for which STATUS='S'(uninterruptible sleep) b. using jobs -l, and filtering... (5 Replies)
Discussion started by: kumarjt
5 Replies
loratune(1M)															      loratune(1M)

NAME
loratune - initiate LORA tuneup to improve alignment of processing resources SYNOPSIS
DESCRIPTION
The command improves the performance of an HP-UX system in LORA (Locality-Optimizated Resource Alignment) mode, by triggering the kernel to do optimization tuning of the system and application memory. The command may return before the tuning is complete. This tuning can continue in the background for several minutes after the command returns. If the command is interrupted, or the command process is otherwise terminated, no subsequent tuning operations will be initiated, but those in progress will continue until completion. When no options are specified, all locality domains are tuned. Options This option limits the tuning to the locality domain specified by lid. Application Usage In Locality-Optimized Resource Alignment (LORA) mode, performance of applications may improve when their processors and the memory that they use are aligned in the same locality. The HP-UX kernel attempts to maintain such alignment at all times, but it is possible for mis- alignment to occur when the system workload transitions significantly. If that happens, the command can be used to reestablish alignment and improve application performance. Here are some examples of workload transition events that may cause misalignment of processing resources: o Starting or terminating an application that consumes a large amount of processor or memory resources. o The workload demand surges far above the normal level and then recedes. o Dynamic platform operations that add or subtract processor or memory resources from the operating system's control. If one of those events has occurred, and application performance is not as high as it can be, then it is appropriate to invoke the command. RETURN VALUES
The command returns a 0 when successful, and a non-zero value when unsuccessful. ERRORS
The command will not initiate any tuning and will return a non-zero value if the user does not have appropriate privilege. WARNINGS
The command can consume a significant amount of system processing resources to restore optimal alignment. Ideally, the command should be invoked prior to the time when performance is critical, not during the time when performance is critical. The command should be invoked after the workload transition is complete, not during workload transition. Although tuning can continue in the background for several min- utes, it is not necessary to wait any more than five minutes between invoking the command and launching new applications. EXAMPLES
If eight instances of SAP were running in localities with locality domain identifiers 4 and 5, and four of those instances were shut down, then it would be appropriate to tuneup the remaining four instances. An example command would be: If an HP-UX system in LORA mode had one of its cells deactivated, then it would be appropriate to tuneup the entire system. An example command would be: AUTHOR
was developed by HP. SEE ALSO
mpsched(1), numa_policy(5), lora(7). Itanium(R)-based Systems Only loratune(1M)
All times are GMT -4. The time now is 11:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy