From owner-freebsd-stable@freebsd.org Thu Mar 28 10:27:04 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D53115572B5 for ; Thu, 28 Mar 2019 10:27:04 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from cu1176c.smtpx.saremail.com (cu1176c.smtpx.saremail.com [195.16.148.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E305669F82 for ; Thu, 28 Mar 2019 10:27:02 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from [172.16.8.5] (unknown [192.148.167.11]) by proxypop02.sare.net (Postfix) with ESMTPA id 60A9D9DD36F for ; Thu, 28 Mar 2019 11:26:49 +0100 (CET) From: Borja Marcos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Crazy default kern.maxusers? Message-Id: <3C918AD8-B5AD-4D46-A944-EBA6D9B0A381@sarenet.es> Date: Thu, 28 Mar 2019 11:26:46 +0100 To: freebsd-stable Stable X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: E305669F82 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.01 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.16.148.0/24]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[smtp.sarenet.es,smtp.sarenet.es,smtp.sarenet.es]; DMARC_POLICY_ALLOW(-0.50)[sarenet.es,reject]; RCVD_IN_DNSWL_NONE(0.00)[151.148.16.195.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.40)[-0.402,0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:3262, ipnet:195.16.128.0/19, country:ES]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.30)[ipnet: 195.16.128.0/19(-3.64), asn: 3262(-2.91), country: ES(0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 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, 28 Mar 2019 10:27:04 -0000 Hi :) I am setting an Elasticsearch cluster using FreeBSD 12-STABLE. The = servers have 64 GB of memory and I am running ZFS.=20 I was puzzled when despite having limited vfs.zfs.arc_max to 32 GB and = assigning a 16 GB heap (locked) to Elasticsearch, and with around 10 GB of free memory, I saw the system hitting swap and = actively paging in and out.=20 Should it happen?=20 Checking sysctl values I noticed that kern.maxusers was 4429! Is this sane? I have decreased it to 32 on boot.loader.conf and I am = checking wether it behaves the same. Thanks! Borja.