Sponsored Content
Full Discussion: Parallel processing
Top Forums Shell Programming and Scripting Parallel processing Post 302969183 by RudiC on Saturday 19th of March 2016 08:02:33 AM
Old 03-19-2016
There's a bunch of proposals on this topic in these fora. Did you consider the links at the bottom margin of this page?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to do parallel processing??

Hi All, I am working on solaris 8 sparc machine with 2 cpu. I am trying to run my application which generates files. I run multiple instance of the application, but the results don't seem to show as if it were runing parallely. When i run the application once it takes 12 secs to generate a... (1 Reply)
Discussion started by: zing
1 Replies

2. Shell Programming and Scripting

parallel processing

Hi I want to run two shell script files parallely. These two scripts are interacting with the database. can any body help on this Pls Regards Audippa naidu.M (3 Replies)
Discussion started by: audippa
3 Replies

3. Shell Programming and Scripting

Need Help With Parallel Processing

Hi I am looking for some kind of feature in unix that will help me write a script that can invoke multiple processes in parallel. And make sure that the multiple parallel processes complete successfully before I proceed to the next step. Someone suggested something called timespid or... (6 Replies)
Discussion started by: imnewtothis23
6 Replies

4. Shell Programming and Scripting

parallel processing

hi i am preparing a set of batches for a set of files sequentially There is a folder /xyz where all the files reside now all the files starting with 01 - will be appended for one below other to form a batch batch01 then all the files starting with 02 - will be appended for one below other to... (7 Replies)
Discussion started by: mad_man12
7 Replies

5. Shell Programming and Scripting

How to make parallel processing rather than serial processing ??

Hello everybody, I have a little problem with one of my program. I made a plugin for collectd (a stats collector for my servers) but I have a problem to make it run in parallel. My program gathers stats from logs, so it needs to run in background waiting for any new lines added in the log... (0 Replies)
Discussion started by: Samb95
0 Replies

6. Shell Programming and Scripting

script parallel processing

How to write script which run multiple scripts parllely, i have script called A,which has to execute B,C,D,E scripts parllely.. (2 Replies)
Discussion started by: machpee
2 Replies

7. Shell Programming and Scripting

PARALLEL PROCESSING IN PERL

HI All, I have scenerio where I need to call sub modules through for loop for (i=0; i<30 ;i++) { .. .. .. subroutine 1; subroutine 2; } I want this to be run in parallel process1 { ... ... subroutine 1; subroutine 2; (0 Replies)
Discussion started by: gvk25
0 Replies

8. Shell Programming and Scripting

Parallel processing in bash?

Hi Say I am interested in processing a big data set over shell, and each process individually takes a long time, but many such processes can be pipe-lined, is there a way to do this automatically or efficiently in shell? For example consider pinging a list addresses upto 5 times each. Of... (5 Replies)
Discussion started by: jamie_123
5 Replies

9. Shell Programming and Scripting

Implement parallel processing

Unix OS : Linux 2.6x Shell type : Korn Hi all , This is a requirement to incorporate parallel processing of a Unix code . I have two pieces of unix code , one of which will act as a parent process . This script will invoke multiple ( say four ) instances of the second script at one go... (13 Replies)
Discussion started by: kumarjt
13 Replies

10. Shell Programming and Scripting

Parallel processing - continued

Hi, I am taking up the cue from where I was left in my earlier post ( link given below ) https://www.unix.com/shell-programming-scripting/231107-implement-parallel-processing.html I actually wanted to know the significance of using the Unix "wait" , which returns the control from background to... (3 Replies)
Discussion started by: kumarjt
3 Replies
PIGZ(1) 						    BSD General Commands Manual 						   PIGZ(1)

NAME
pigz, unpigz -- compress or expand files SYNOPSIS
pigz [-0..9cdfhiKkLlNnqRrTtz] [-b blocksize] [-p threads] [-S suffix] [file ...] unpigz [-cfhiKkLlNnqRrTtz] [-b blocksize] [-p threads] [-S suffix] [file ...] DESCRIPTION
pigz compresses using threads to make use of multiple processors and cores. The input is broken up into 128 KB chunks with each compressed in parallel. The individual check value for each chunk is also calculated in parallel. The compressed data is written in order to the out- put, and a combined check value is calculated from the individual check values. The compressed data format generated is in the gzip, zlib, or single-entry zip format using the deflate compression method. The compression produces partial raw deflate streams which are concatenated by a single write thread and wrapped with the appropriate header and trailer, where the trailer contains the combined check value. Each partial raw deflate stream is terminated by an empty stored block (using the Z_SYNC_FLUSH option of zlib(3)), in order to end that par- tial bit stream at a byte boundary. That allows the partial streams to be concatenated simply as sequences of bytes. This adds a very small four to five byte overhead to the output for each input chunk. The default input block size is 128K, but can be changed with the -b option. The number of compress threads is set by default to the number of online processors, which can be changed using the -p option. Specifying -p 1 avoids the use of threads entirely. The input blocks, while compressed independently, have the last 32K of the previous block loaded as a preset dictionary to preserve the com- pression effectiveness of deflating in a single thread. This can be turned off using the -i or --independent option, so that the blocks can be decompressed independently for partial error recovery or for random access. Decompression can't be parallelized, at least not without specially prepared deflate streams for that purpose. As a result, pigz uses a sin- gle thread (the main thread) for decompression, but will create three other threads for reading, writing, and check calculation, which can speed up decompression under some circumstances. Parallel decompression can be turned off by specifying one process (-dp 1 or -tp 1). Compressed files can be restored to their original form using pigz -d or unpigz. OPTIONS
-#, --fast, --best Regulate the speed of compression using the specified digit #, where -1 or --fast indicates the fastest compression method (less compression) and -9 or --best indicates the slowest compression method (best compression). Level 0 is no compression. -b, --blocksize mmm Set compression block size to mmm K (default 128KiB). -c, --stdout, --to-stdout Write all processed output to stdout (won't delete). -d, --decompress, --uncompress Decompress the compressed input. -f, --force Force overwrite, compress .gz, links, and to terminal. -h, --help Display a help screen and quit. -i, --independent Compress blocks independently for damage recovery. -K, --zip Compress to PKWare zip (.zip) single entry format. -k, --keep Do not delete original file after processing. -L, --license Display the pigz license and quit. -l, --list List the contents of the compressed input. -N, --name Store/restore file name and mod time in/from header. -n, --no-name Do not store or restore file name in/from header. -p, --processes n Allow up to n processes (default is the number of online processors) -q, --quiet, --silent Print no messages, even on error. -r, --recursive Process the contents of all subdirectories. -S, --suffix .sss Use suffix .sss instead of .gz (for compression). -T, --no-time Do not store or restore mod time in/from header. -t, --test Test the integrity of the compressed input. -V, --version Show the version of pigz. -v, --verbose Provide more verbose output. -z, --zlib Compress to zlib (.zz) instead of gzip format. COPYRIGHT NOTICE
This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages aris- ing from the use of this software. Copyright (C) 2007, 2008, 2009, 2010 Mark Adler <madler@alumni.caltech.edu> BSD
June 19, 2010 BSD
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy