03-27-2011
Quote:
In my early shell-scripting days I wrote scripts that I'm sure would need your 36 processors to function with any efficiency Having CPU power to waste hardly makes it a good idea to do so.
My stats do not show waste of CPU power. They show a CPU power saving by using "cat" because "cut" is less efficient at reading files. However in a single stream environment loading multiple processes in a long pipeline would have been a performance disaster.
In my early days or unix I have dealt with system crashes caused by for example: too many concurrent processes; too many forks; disc buffer overload; mysterious kernel crash etc. . It's hard to even generate these situations on modern systems after an initial large-scale kernel build.
There is a very good O'Reilly book "System Performance Tuning" but do bear in mind that it does not cover very large unix systems adequately.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how do you show just the used disk space. using the cut and df command?? or does anyone have any other suggestions on how to do it a better way? (3 Replies)
Discussion started by: rookie22
3 Replies
2. Shell Programming and Scripting
Hi,
I want to cut from a particular position to a particular position and retain the rest.
I tried this
cut -c31-51 file1.txt > file2.txt
But The characters from the position 31 to 51 were only present in file2.txt.
Is there a way to reverse this i.e to retain the rest except from... (1 Reply)
Discussion started by: ragavhere
1 Replies
3. Shell Programming and Scripting
Gurus,
I need help with the cut command :
I have a file with garbage charaters at the beginning of each record; but these characters are not of the same length;
First record has 3 garbage chars to be removed; rest have 2;
If the length was consistent across all the records, I could have... (3 Replies)
Discussion started by: tru_tell
3 Replies
4. Shell Programming and Scripting
Hi
Can anyone what I am doing wrong while using cut command.
for f in *.log
do
logfilename=$f
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
flength=${#logfile1}
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies
5. UNIX for Dummies Questions & Answers
hay
i am trying to get JUST the PID from the ps command.
my command line is:
ps -ef | grep "mintty" | cut -d' ' -f2
but i get an empty line. i assume that the delimiter is not just one space character, but can't figure out what should i do in order to do that.
i know i can use awk or cut... (8 Replies)
Discussion started by: ran ber
8 Replies
6. Shell Programming and Scripting
hi,
i have a file
abc,"an,ab",cde,efg
abc,anab,cde,efg and need to cut the second field so the output should be abc,cde,efg and i have used cut -d',' -f1-1,3- but its giving me
abc,ab",cde,efg
abc,cde,efg (4 Replies)
Discussion started by: ATWC
4 Replies
7. UNIX for Beginners Questions & Answers
I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies
8. Shell Programming and Scripting
VARIABLE="jhovan 5259 5241 0 20:11 ? 00:00:00 /proc/self/exe --type=gpu-process --channel=5182.0.1597089149 --supports-dual-gpus=false --gpu-driver-bug-workarounds=2,45,57 --disable-accelerated-video-decode --gpu-vendor-id=0x80ee --gpu-device-id=0xbeef --gpu-driver-vendor... (3 Replies)
Discussion started by: SkySmart
3 Replies
9. Shell Programming and Scripting
im currently running the following command to grab all arguments in front of a script, directly from the process table.
# cat /tmp/allmyprocs
ubuntu 9933 27793 0 03:29 pts/0 00:00:00 /bin/sh ./prying.sh
ubuntu 9941 9933 0 03:29 pts/0 00:00:00 sh
ubuntu 9952 9941 0 03:29... (1 Reply)
Discussion started by: SkySmart
1 Replies
LEARN ABOUT CENTOS
x86_energy_perf_policy
X86_ENERGY_PERF_POLICY(8) System Manager's Manual X86_ENERGY_PERF_POLICY(8)
NAME
x86_energy_perf_policy - read or write MSR_IA32_ENERGY_PERF_BIAS
SYNOPSIS
x86_energy_perf_policy [-c cpu] [-v] -r
x86_energy_perf_policy [-c cpu] [-v] 'performance'
x86_energy_perf_policy [-c cpu] [-v] 'normal'
x86_energy_perf_policy [-c cpu] [-v] 'powersave'
x86_energy_perf_policy [-c cpu] [-v] n
DESCRIPTION
x86_energy_perf_policy allows software to convey its policy for the relative importance of performance versus energy savings to the proces-
sor.
The processor uses this information in model-specific ways when it must select trade-offs between performance and energy efficiency.
This policy hint does not supersede Processor Performance states (P-states) or CPU Idle power states (C-states), but allows software to
have influence where it would otherwise be unable to express a preference.
For example, this setting may tell the hardware how aggressively or conservatively to control frequency in the "turbo range" above the
explicitly OS-controlled P-state frequency range. It may also tell the hardware how aggressively is should enter the OS requested C-
states.
Support for this feature is indicated by CPUID.06H.ECX.bit3 per the Intel Architectures Software Developer's Manual.
Options
-c limits operation to a single CPU. The default is to operate on all CPUs. Note that MSR_IA32_ENERGY_PERF_BIAS is defined per logical
processor, but that the initial implementations of the MSR were shared among all processors in each package.
-v increases verbosity. By default x86_energy_perf_policy is silent.
-r is for "read-only" mode - the unchanged state is read and displayed.
performance Set a policy where performance is paramount. The processor will be unwilling to sacrifice any performance for the sake of
energy saving. This is the hardware default.
normal Set a policy with a normal balance between performance and energy efficiency. The processor will tolerate minor performance compro-
mise for potentially significant energy savings. This reasonable default for most desktops and servers.
powersave Set a policy where the processor can accept a measurable performance hit to maximize energy efficiency.
n Set MSR_IA32_ENERGY_PERF_BIAS to the specified number. The range of valid numbers is 0-15, where 0 is maximum performance and 15 is max-
imum energy efficiency.
NOTES
x86_energy_perf_policy runs only as root.
FILES
/dev/cpu/*/msr
SEE ALSO
msr(4)
AUTHORS
Written by Len Brown <len.brown@intel.com>
X86_ENERGY_PERF_POLICY(8)