Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 50

Thread: Server auto-suspend?

  1. #31
    Join Date
    Dec 2007
    Location
    Newcastle-upon-Tyne - UK
    Beans
    109
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Server auto-suspend?

    Got the config file working okay again, NAS suspends as normal after inactivity
    Also, my screen corruption on startup seems to be fixed by adding 'pm-suspend --quirk-s3-mode' to the action file
    I ssh to the NAS and checked it didn't suspend; this worked!
    I have my Kubuntu desktop mounted nfs shares from the NAS, after adding 'nfsd' to the config file, NAS still suspended even when I accessed the shares from the client!
    I don't understand why nfs shares are not preventing suspend! any ideas?

  2. #32
    Join Date
    Sep 2009
    Beans
    35

    Re: Server auto-suspend?

    Muttley, which processes do you monitor?

    ~Frank

  3. #33
    Join Date
    Dec 2007
    Location
    Newcastle-upon-Tyne - UK
    Beans
    109
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Server auto-suspend?

    I've just got smbd and ssh at the moment. I had nfsd in the list but this didn't work. I'm wondering if I place the path to nfsd in the config file it may work? I biggest problem I find here is there is little or no documentation for PowerNap available. Maybe I could try adding an alias to the config file and listing nfsd as normal? what do you think?

  4. #34
    Join Date
    Dec 2007
    Location
    Newcastle-upon-Tyne - UK
    Beans
    109
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Server auto-suspend?

    looks like I need to specify the path:-

    HTML Code:
    Sample Configuration
    
    In the Ubuntu Enterprise Cloud case, the configuration file, /etc/powernap/config, might look something like:
    
    MONITORED_PROCESSES = [ "^/usr/bin/kvm " ]
    ABSENT_SECONDS = 300
    GRACE_SECONDS = 60
    
    Thus, if no instance of kvm runs for 5 minutes, then the system will emit a warning, and powernap after a 1 minute grace period.

  5. #35
    Join Date
    Jun 2006
    Beans
    12

    Re: Server auto-suspend?

    Hi,

    I'm trying to set this up in a desktop system, but it seems not to be noticing my usb mouse/keystrokes and suspending mid-use. As far as i can tell, powernap is only monitoring /dev/ptmx, the pseudo-terminal. My mouse/keyboard are usb devices (/dev/usb/hiddev). Is there anyway to have it monitor other /dev files for activity or should this go as a feature request on launchpad?
    Cheers
    Drejom

  6. #36
    Join Date
    Jan 2010
    Beans
    4

    Re: Server auto-suspend?

    I've been following this topic as I too have build a NAS/FTP/Squeezebox server. I'm having trouble with setting up powernap, because of the monitored processes. I've set these processes:

    Code:
    MONITORED_PROCESSES = [ "smbd", "sshd: .*\[priv\]$" , "proftpd" , "webmin/miniserv.pl", "sabnzbdplus" ]
    But a lot of them remain active even though there's no activity. Samba for example.

    Code:
    [2010-01-20 10:03:43] Examining process table
    [2010-01-20 10:03:43]   Looking for [smbd]
    [2010-01-20 10:03:43]     Process found, reset absent time [0/300]
    [2010-01-20 10:03:43]   Looking for [sshd: .*\[priv\]$]
    [2010-01-20 10:03:43]     Process found, reset absent time [0/300]
    [2010-01-20 10:03:43]   Looking for [proftpd]
    [2010-01-20 10:03:43]     Process not found, increment absent time [954/300]
    [2010-01-20 10:03:43]     Process absent for >= threshold, so mark absent
    [2010-01-20 10:03:43]   Looking for [webmin/miniserv.pl]
    [2010-01-20 10:03:43]     Process found, reset absent time [0/300]
    [2010-01-20 10:03:43]   Looking for [sabnzbdplus]
    [2010-01-20 10:03:43]     Process not found, increment absent time [954/300]
    [2010-01-20 10:03:43]     Process absent for >= threshold, so mark absent
    How did you guys solve this? Can we have powernap check if a process is alive AND active?

  7. #37
    Join Date
    Dec 2007
    Location
    Belgium
    Beans
    4
    Distro
    Ubuntu Development Release

    Re: Server auto-suspend?

    have you looked at the SBC SrvrPowerCtrl plugin? All suspend / hibernate / wol options are available and it works like a charm....

  8. #38
    Join Date
    Apr 2010
    Beans
    3

    Re: Server auto-suspend?

    Quote Originally Posted by JvdBosch View Post
    I've been following this topic as I too have build a NAS/FTP/Squeezebox server. I'm having trouble with setting up powernap, because of the monitored processes. I've set these processes:

    Code:
    MONITORED_PROCESSES = [ "smbd", "sshd: .*\[priv\]$" , "proftpd" , "webmin/miniserv.pl", "sabnzbdplus" ]
    But a lot of them remain active even though there's no activity. Samba for example.

    Code:
    [2010-01-20 10:03:43] Examining process table
    [2010-01-20 10:03:43]   Looking for [smbd]
    [2010-01-20 10:03:43]     Process found, reset absent time [0/300]
    [2010-01-20 10:03:43]   Looking for [sshd: .*\[priv\]$]
    [2010-01-20 10:03:43]     Process found, reset absent time [0/300]
    [2010-01-20 10:03:43]   Looking for [proftpd]
    [2010-01-20 10:03:43]     Process not found, increment absent time [954/300]
    [2010-01-20 10:03:43]     Process absent for >= threshold, so mark absent
    [2010-01-20 10:03:43]   Looking for [webmin/miniserv.pl]
    [2010-01-20 10:03:43]     Process found, reset absent time [0/300]
    [2010-01-20 10:03:43]   Looking for [sabnzbdplus]
    [2010-01-20 10:03:43]     Process not found, increment absent time [954/300]
    [2010-01-20 10:03:43]     Process absent for >= threshold, so mark absent
    How did you guys solve this? Can we have powernap check if a process is alive AND active?
    Having the same issue with powernap. Anybody have solved it yet?

    Cheers
    wanky

  9. #39
    Join Date
    Apr 2010
    Beans
    4

    Re: Server auto-suspend?

    All,

    Not sure if anyone is still looking at this thread, but I have been looking through the powernap launchpad site and found a patch that Konrad Klimaszewski has added which adds MONITORED_IO_PROCESS, which checks that the process is actually active, as well as present.

    I believe this is what is needed (for me too!). Reading through the actual patch, the examples are for samba, nfs and lighttpd.

    see https://bugs.launchpad.net/powernap/+bug/531773

    Now we just need Dustin to merge the changes....

    Rod

  10. #40
    Join Date
    Apr 2010
    Beans
    4

    Re: Server auto-suspend?

    Also, powernap uses the command
    Code:
    ps -eo args
    as the list to compare against the MONITORED_PROCESSES config list.

    Hence running that command on your system will show how the processes appear to powernap.

    Enjoy,
    Rod

Page 4 of 5 FirstFirst ... 2345 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •