From owner-freebsd-hackers@freebsd.org Wed Jan 27 16:40:34 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A64AA70574 for ; Wed, 27 Jan 2016 16:40:34 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0085D1D7D; Wed, 27 Jan 2016 16:40:34 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: by mail-ob0-x22a.google.com with SMTP id ba1so11815281obb.3; Wed, 27 Jan 2016 08:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=2QpWt+OFvldkDzK/hgNv138Ni0dyj2qi4TwJp5iN9g8=; b=y9rMAXEfc+XXZuo24IF0t/t0Igeva+6T2Da4GJV/G4QOKWMPaufZyet2FLiXCpcR7J 9RaZmth9/xwoEJn7nsZ1j8se/AVv8ql06VzHExsK2Hhjuss7WnEjSHa1MG3izq2Nu5wT J64Tvqw7/8lu7geJqIGGhENOCUY/thGFrSgSNGPt0z8k9dvA2sUYbVRYf5luaTQKQOne lczQg7IRjp8aCRfoe28vj7XAYGsFdlqyw2HMfzeG7h+tQPHy7C4EMhXmQOWTGaozYTQd ssi9dvn2ZiiMqNyrqTINekPLtTeAEoGt0Gdr5/wjoDwy1iEBRLwDceee9cVw9D3fBN3k 01jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=2QpWt+OFvldkDzK/hgNv138Ni0dyj2qi4TwJp5iN9g8=; b=XGFonshgcELrHcVVtVQXZOlcGHArXZgoPcdzuiNNtaZNnE5zVvNRb9BEDe3Cogejvv dR0wm8IGARyqysC0op2o/1qgaskX/hHAhmeUSik107hvbvq7gs3s6b10cxZzj/agO6eA k1TLxE0EunOWZ133Ic4wPAOUjA30oO0OBYul/OlkZn19F65Ny/xXVX/sLPRCynJ1rjYt xhXB2pFupJProE7TGaIRHSI0bWuoLKR8Rn4EfU3fanTU/iMem99NpldktnLkHcsV2N5W thNnvrvCK5LS+bAFF4YjRoC8h/vDdXhdAHcItF+9shOQWdTzGiYCa8EGrB9LMYCmxg8k lk1A== X-Gm-Message-State: AG10YOQxtP7UlRkzB1o3OhmPRHtOOhjgIXbcIPwZNfVmlOjWlwrtmyl9mav7KkpBsUSq74mumJKtpnHlS5NQtg== MIME-Version: 1.0 X-Received: by 10.60.226.136 with SMTP id rs8mr22362063oec.31.1453912833318; Wed, 27 Jan 2016 08:40:33 -0800 (PST) Received: by 10.182.40.194 with HTTP; Wed, 27 Jan 2016 08:40:32 -0800 (PST) Received: by 10.182.40.194 with HTTP; Wed, 27 Jan 2016 08:40:32 -0800 (PST) Reply-To: araujo@FreeBSD.org In-Reply-To: References: <56A86D91.3040709@freebsd.org> Date: Thu, 28 Jan 2016 00:40:32 +0800 Message-ID: Subject: Re: syslogd(8) with OOM Killer protection From: Marcelo Araujo To: Warren Block Cc: freebsd-hackers@freebsd.org, Allan Jude Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2016 16:40:34 -0000 On Jan 28, 2016 12:37 AM, "Warren Block" wrote: > > On Wed, 27 Jan 2016, Allan Jude wrote: > >> On 2016-01-27 01:21, Marcelo Araujo wrote: >>> >>> Hi guys, >>> >>> I would like to know your opinion about this REVIEW[1]. >>> The basic idea is protect by default the syslogd(8) against been killed by >>> OOM with an option to disable the protection. >>> >>> Some people like the idea, other people would prefer something more global >>> where we can protect any daemon by the discretion of our choice. >>> >>> Thoughts? >>> >>> >>> [1] https://reviews.freebsd.org/D4973 >>> >>> >>> Best, >>> >> >> I do like the idea of generalizing it, say via rc.subr >> >> So you can just do: >> >> someapp_protect=YES (and maybe syslogd has this enabled by default in >> /etc/defaults/rc.conf) and it prefixes the start command with protect -i. > > > Possibly simpler to provide a list in one setting than an individual setting for each daemon. With ideas from other posters: > > oomprotect_daemons="crond syslogd" > > Yes, it sounds more reasonable and easy to understand! Gonna check what I can do with it. Thanks everybody for the feedback! Best, _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"