From owner-freebsd-stable@FreeBSD.ORG Thu Jul 14 10:24:05 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AE951065670 for ; Thu, 14 Jul 2011 10:24:05 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 291C18FC0A for ; Thu, 14 Jul 2011 10:24:04 +0000 (UTC) Received: by vws18 with SMTP id 18so92218vws.13 for ; Thu, 14 Jul 2011 03:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=pqVU2E4GKeFb8IiZnfPhG23L6zRllnvjqLGLDYfKNbE=; b=hgtzgamACC57ExajeWPKEcG7f7s0RmZIuzU4AmxvNOoHCfC7czcuBv0s95qCSRO/Po JkM1CtGGM0HslU19PwYq+NZdpp9SxoQftC/Lhbt0Dmir8W2duQaZRwFwjcNb1pzLFXRi Lugc1a7Ap5IAHvdAPswg/g7cn7SHluCDu2kyo= MIME-Version: 1.0 Received: by 10.52.94.13 with SMTP id cy13mr338686vdb.33.1310639044490; Thu, 14 Jul 2011 03:24:04 -0700 (PDT) Received: by 10.52.182.225 with HTTP; Thu, 14 Jul 2011 03:24:04 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Jul 2011 11:24:04 +0100 Message-ID: From: Tom Evans To: Subbsd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: watchdog timeout for pwait/rc.shutdown X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2011 10:24:05 -0000 2011/7/14 Subbsd : > Hi > > Tell me please, is it possible to change the behavior of shutdown > sequence to avoid work of kill process (or increase timeout). > > =D0=A2ot always process can not react to signals and stop - for example, > heavy MySQL server databases or databases/redis - can not keep up with > 30 seconds to correct shutdown. > In my example noSQL product - redis holds a 10 GB RAM memory and when > stop it just did not have time to reset the state to disk when i stop > process or jail with redis. > As result ive have in /var/db/redis "dump.tmp.XX" - broken DB about ~3 > Gb instead of 10 GB. > > > Waiting for PIDS: 47924 > 30 second watchdog timeout expired. Shutdown terminated. > Thu Jul 14 16:24:30 MSD 2011 > Killed > > PS: I may be mistaken but I think this problem did not exist before > PS2: i have RELENG_8 and HEAD version of FreeBSD > PS3: Thanks in advance I have roughly the same problem when I shut down my laptop, squid takes at least 1 minute to shut down, so if I shutdown or restart without stopping squid first, then all my processes just get killed rather than shutdown cleanly by their rc script. An option to vary/disable the timeout would be welcome. Cheers Tom