Sponsored Content
Top Forums UNIX for Beginners Questions & Answers 1000 sleep commands on a Linux Server impact? Post 303035495 by MadeInGermany on Sunday 26th of May 2019 01:48:03 PM
Old 05-26-2019
The sleep commands itself do not consume significant resources. The sleeping commands (i.e. the shell) take some memory of course (where a bash consumes more than a dash).
And - if they all wake up at the same time then a big CPU peak will occur.
 

7 More Discussions You Might Find Interesting

1. Solaris

Remove Server Sleep Mode

Hi All, Need some help here. Can anyone tell me how to set or which start up script to edit in order not to set the server to sleep mode after a while of inactivity. My Unix server will go to sleep mode and then i always end up with a OK Prompt and have to reset the server. My Server is a V120... (16 Replies)
Discussion started by: alvintai
16 Replies

2. UNIX for Dummies Questions & Answers

unix sleep and date commands

please help me to fix my script trying to use sleep 2 minutes while the system is sleeping i want to print out same message every 5 seconds thanks t=`date +%S` while do sleep 5 echo "this program will end in 2 minute" done (1 Reply)
Discussion started by: fanco
1 Replies

3. Hardware

Deskjet 1000 hp- commands

I have installed an HP Deskjet 1000 j110 on my Slackware system (13.37). I am trying to print more than 1 page out of 2 or more. No luck so far. Found that there are about 30 odd commands like hp-linefeedcal, -print, -pkservice, -printsettings, -devicesettings, -systray, -check, -align, and... (0 Replies)
Discussion started by: slak0
0 Replies

4. Shell Programming and Scripting

Script to pull uid greater than 1000 from remote server

Hello, I am trying to get UID # greater than 1000 from all linux server, I tried this script getting this error message, someone please suggest. $for i in `cat hostlist.0709.org` ; do ssh -t $i 'awk -F':' "{ if($3 >= 1000) print $0 }" /etc/passwd ' >> output ; done $ cat output hostname1... (4 Replies)
Discussion started by: bobby320
4 Replies

5. Shell Programming and Scripting

Running Commands on a Remote Linux Server over SSH

Hello, I'm trying to create a ksh script to ssh to a remote server, enter the password and a couple commands. For security reasons I have changed the login, password and ip in my example. #!/bin/ksh ssh -t -t username@12.5.5.3 << EOF password cd bin pwd EOF When I run it. It... (5 Replies)
Discussion started by: seekryts15
5 Replies

6. Red Hat

Red Hat 6.5: Leap Day 29.02.2016 Impact on the Linux Machine

Hi Experts Is there any impact on the Linux Machine with respect to the Leap Day {29.02.2016}, which would be introduced next year as part of the Leap Year {2016}. From my application scope, I see no problems. Please comment. Regards Navkanwal (5 Replies)
Discussion started by: navkanwal
5 Replies

7. UNIX for Beginners Questions & Answers

BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD

Usually when I on the evening go to bed I take some interesting book with me. I read it for a while to get me down to sleep. Probably most people seek information from the Nett by googleing but I am so oldfashioned I prefer a real book ;) But what a book. The one I found and ordered is BSD Unix®... (0 Replies)
Discussion started by: fossiili
0 Replies
PMSET(1)						    BSD General Commands Manual 						  PMSET(1)

NAME
pmset -- modify power management settings SYNOPSIS
pmset [-a | -b | -c] [dim minutes] [spindown minutes] [sleep minutes] [womp 1/0] [ring 1/0] [autorestart 1/0] [dps 1/0] [reduce 1/0] [powerbutton 1/0] [lidwake 1/0] [acwake 1/0] [boot] pmset -g [disk | live | cap | sched] DESCRIPTION
pmset changes and reads power management settings such as idle sleep timing, wake on administrative access, automatic restart on power loss, etc. SETTING
The -a, -b, -c flags determine whether the settings apply to battery (-b), charger (wall power) (-c), or all (-a). Use a minutes argument of 0 to set the idle time to never. pmset must be run as root. The boot argument tells power management that system bootup is complete. Loginwindow handles this on a normal Mac OS X system. GETTING
The -g flag outputs the settings currently in use (same as -g live ). -g disk will tell you the settings on disk. -g cap will tell you which power management features the machine supports. -g sched will show scheduled startup/wake and shutdown/sleep events. ARGUMENTS
dim - display dim timer (value in minutes) spindown - disk spindown timer (value in minutes) sleep - system sleep timer (value in minutes) womp - wake on ethernet magic packet (value = 0/1) ring - wake on modem ring (value = 0/1) autorestart - automatic restart on power loss (value = 0/1) dps - dynamically change processor speed based on load (value = 0/1) reduce - reduce processor speed (value = 0/1) powerbutton - sleep the machine when power button is pressed (value = 0/1) lidwake - wake the machine when the laptop lid(or clamshell) is opened (value = 0/1) acwake - wake the machine when power source (AC/battery) is changed (value = 0/1) OTHER ARGUMENTS
These arguments don't directly affect power management settings: boot - tell the kernel that system boot is complete EXAMPLES
pmset -b dim 5 pmset -a dim 10 spindown 10 sleep 30 womp 1 pmset -g live FILES
All changes made through pmset are saved in a persistent preferences file (per-system, not per-user) at /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist pmset modifies the same file that System Preferences Energy Saver modifies. Darwin August 19, 2002 Darwin
All times are GMT -4. The time now is 12:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy