grep has no understanding of numerals as numbers, so can't do what you want. Here's a shell loop for it. And there's probably an awk one-liner to do it.
[edit] Heh. Beaten to the punch by the awk folk again.
I have been troubleshooting a mysterious performance problem with the nightly batch programs on our primary system for quite some time and just found something very interesting. All batch processes are running with a nice value of 24. I don't know what the default is on other systems but I do know... (3 Replies)
Hi Gurus,
I'm using HPUX B.11.23 U ia64 with sh shell.
Is it possible to insert a word "Warning" in the end of this line if there is high percentage? For example: if the percentage is higher than 80%?
Sample data:
/dev/vgsap/TEST1 /oracle/TST/TEST1 9.89 GB 8.37 GB ... (11 Replies)
Have any IT consultants here been on a project where you knew the bill rate was really high but you only got a tiny piece of it (like paid $60/hr and billed out around $200)? Does anyone know of a company that pays consultants well - like 70-80% or more of what they're getting? (5 Replies)
Hi
I would like to test for a max number value. It may be a decimal so I know I have to pipe into bc.
I just cannot get the syntax for this to work. I cannot get passed an error with the bracket - see below.
Any help appreciated.
Regards
Ewan
This works:
/export/home/ewan> cat... (5 Replies)
One issue I could see on AIX 5.3: At one of my customer they have got the ThreadLimit of 2500 set on web server in httpd.conf file.
Currently 2000 users have logged in each attaing a single instance of httpd.
While in ps -ef for httpd process it is showing thread count (thcount) almost 3000.... (3 Replies)
Dear Masters,
I need to eliminate lines from file input 2 when the date in column 1 more than date in column 1 in file input 1
input 1
20141101|USA|CANSEL|496420000
20141101|USA|CANUT|1069740000
20141101|USA|CANTENG|625920000
20141102|USA|CANUT|413180000
20141103|USA|CANSEL|1364245000... (5 Replies)
This thread today reminded me of it:
https://www.unix.com/shell-programming-and-scripting/279465-larger-window.html#post303021017
This is OSX 10.13.6 and greater centric only.
This expands the terminal window on the fly in bash.
You initially need to put the standard terminal window to the top... (0 Replies)
Discussion started by: wisecracker
0 Replies
LEARN ABOUT CENTOS
cpupower-set
CPUPOWER-SET(1) cpupower Manual CPUPOWER-SET(1)NAME
cpupower-set - Set processor power related kernel or hardware configurations
SYNOPSIS
cpupower set [ -b VAL ] [ -s VAL ] [ -m VAL ]
DESCRIPTION
cpupower set sets kernel configurations or directly accesses hardware registers affecting processor power saving policies.
Some options are platform wide, some affect single cores. By default values are applied on all cores. How to modify single core configura-
tions is described in the cpupower(1) manpage in the --cpu option section. Whether an option affects the whole system or can be applied to
individual cores is described in the Options sections.
Use cpupower info to read out current settings and whether they are supported on the system at all.
Options--perf-bias, -b
Sets a register on supported Intel processore which allows software to convey its policy for the relative importance of performance
versus energy savings to the processor.
The range of valid numbers is 0-15, where 0 is maximum performance and 15 is maximum energy efficiency.
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 it should enter the OS requested C-
states.
This option can be applied to individual cores only via the --cpu option, cpupower(1).
Setting the performance bias value on one CPU can modify the setting on related CPUs as well (for example all CPUs on one socket),
because of hardware restrictions. Use cpupower -c all info -b to verify.
This options needs the msr kernel driver (CONFIG_X86_MSR) loaded.
--sched-mc, -m [ VAL ]
--sched-smt, -s [ VAL ]
--sched-mc utilizes cores in one processor package/socket first before processes are scheduled to other processor packages/sockets.
--sched-smt utilizes thread siblings of one processor core first before processes are scheduled to other cores.
The impact on power consumption and performance (positiv or negativ) heavily depends on processor support for deep sleep states, fre-
quency scaling and frequency boost modes and their dependencies between other thread siblings and processor cores.
Taken over from kernel documentation:
Adjust the kernel's multi-core scheduler support.
Possible values are:
0 - No power saving load balance (default value)
1 - Fill one thread/core/package first for long running threads
2 - Also bias task wakeups to semi-idle cpu package for power savings
SEE ALSO cpupower-info(1), cpupower-monitor(1), powertop(1)AUTHORS --perf-bias parts written by Len Brown <len.brown@intel.com>
Thomas Renninger <trenn@suse.de>
22/02/2011 CPUPOWER-SET(1)