06-12-2009
Use
threads or fork into 2 processes each doing a part of the load. Both approaches will require you to somehow synchronize the workers (esp. any resources they access)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I have a sunfire 280R with 2 750 MHz CPU and 2 Gig of RAM. But when I compile things it does not seem to be using all of it's resources thus the compile take forever. At most it seem to be only using at most 10% of CPU and 5% of swap sapce. I have tried to renice the pid of the... (6 Replies)
Discussion started by: larry
6 Replies
2. UNIX for Dummies Questions & Answers
I have the following command prompt perl one liner:
perl -e 's/\(\)\\,\"]//g; s/^\s//g; s/;/\n/g' -pi result1
I tried to move this one liner into a perl script I am practicing with (just started learning perl right now).
I tried the following (I only know how to open a file and output to a... (1 Reply)
Discussion started by: EDALBNUG
1 Replies
3. Solaris
Dear All master
We have Sunfire memory 16G memory and 8 Processor.
I install with Solaris 10,
but i think resource that use all proccess is very much,
I installed this machine 3 times, twice install Oracle the load process make machine is very slow.
in new install process like this,... (1 Reply)
Discussion started by: moslemovic
1 Replies
4. Shell Programming and Scripting
Hi
Need a perl script to read lines in a file, scan for a string named "APPLE" and write to different file the only lines containing the matched string. (5 Replies)
Discussion started by: PrasannaKS
5 Replies
5. Shell Programming and Scripting
I wrote a very simple script that matches combinations of alphabetic characters (1-5). I want to use it to test CPU speeds of different hardware/platforms. The problem is that on multi-core/processor systems, only one CPU is being utilized to execute the script. Is there a way to change that?... (16 Replies)
Discussion started by: ph0enix
16 Replies
6. Shell Programming and Scripting
Iam trying to load the full path of multiplie files in the same directory to an array if the filenames matches a pattern. The following is the current code;
where $input=C:\test
# change to and open the comparison directory
chdir("$input2") || die "Cannot change dir: $!";
opendir(DIR2,... (2 Replies)
Discussion started by: cold_Que
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way :
- Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies
8. Solaris
Hello:
I have a machine built on 2 drives and mirrors have been created to a second set of 2 drives (4 total) on the same platform. SVM.
Might anyone provide guidance to create a second machine by breaking the mirrored set, moving the two mirrors (2) to another machine (same platform type),... (1 Reply)
Discussion started by: 4dailyrunner
1 Replies
9. Shell Programming and Scripting
Hi, I got problem with queue code how to determined empty and full and problem with while loop
Here is my pseudo code :
Input page Access
Input Pgae Frame
For i =3 to pageframe count by 1
construct queue of size i
set pageFaultCount to 0
while morepages do
page = NextPage... (1 Reply)
Discussion started by: guidely
1 Replies
10. UNIX and Linux Applications
The problematic directory is the following:
/root/.cache/deja-dup
This directory grows until my "/" is full and then the restoring activity fails.
I already tried to create a symbolic link with origin another partition where I have more space. However during the restoring activity ... (4 Replies)
Discussion started by: puertas12
4 Replies
LEARN ABOUT MOJAVE
less5.18
less(3pm) Perl Programmers Reference Guide less(3pm)
NAME
less - perl pragma to request less of something
SYNOPSIS
use less 'CPU';
DESCRIPTION
This is a user-pragma. If you're very lucky some code you're using will know that you asked for less CPU usage or ram or fat or... we just
can't know. Consult your documentation on everything you're currently using.
For general suggestions, try requesting "CPU" or "memory".
use less 'memory';
use less 'CPU';
use less 'fat';
If you ask for nothing in particular, you'll be asking for "less 'please'".
use less 'please';
FOR MODULE AUTHORS
less has been in the core as a "joke" module for ages now and it hasn't had any real way to communicating any information to anything.
Thanks to Nicholas Clark we have user pragmas (see perlpragma) and now "less" can do something.
You can probably expect your users to be able to guess that they can request less CPU or memory or just "less" overall.
If the user didn't specify anything, it's interpreted as having used the "please" tag. It's up to you to make this useful.
# equivalent
use less;
use less 'please';
"BOOLEAN = less->of( FEATURE )"
The class method "less->of( NAME )" returns a boolean to tell you whether your user requested less of something.
if ( less->of( 'CPU' ) ) {
...
}
elsif ( less->of( 'memory' ) ) {
}
"FEATURES = less->of()"
If you don't ask for any feature, you get the list of features that the user requested you to be nice to. This has the nice side effect
that if you don't respect anything in particular then you can just ask for it and use it like a boolean.
if ( less->of ) {
...
}
else {
...
}
CAVEATS
This probably does nothing.
This works only on 5.10+
At least it's backwards compatible in not doing much.
perl v5.18.2 2013-11-04 less(3pm)