From owner-freebsd-questions@freebsd.org Tue Apr 10 20:00:19 2018 Return-Path: Delivered-To: freebsd-questions@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 701A5F94CD3 for ; Tue, 10 Apr 2018 20:00:19 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from mail2.nber.org (mail2.nber.org [198.71.6.79]) by mx1.freebsd.org (Postfix) with ESMTP id F3FA16F613 for ; Tue, 10 Apr 2018 20:00:18 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from sas1.nber.org (sas1.nber.org [198.71.6.89]) by mail2.nber.org (8.15.2/8.15.2) with ESMTPS id w3AJdEa5086257 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Apr 2018 15:39:14 -0400 (EDT) (envelope-from feenberg@nber.org) Date: Tue, 10 Apr 2018 15:39:14 -0400 (EDT) From: Daniel Feenberg To: Francis Bacon cc: freebsd-questions@freebsd.org Subject: Re: sshd virtual memory usage on different hardware In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, 2018/04/09 17:26:31 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2018/04/10 12:49:00 #8387652 X-KLMS-AntiVirus-Status: Clean, skipped X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2018 20:00:19 -0000 On Tue, 10 Apr 2018, Francis Bacon wrote: > Hi guys, > > I was trying to find out why sshd uses more memory on different hardware. > All machines are running 11.1-STABLE, but some use 4M some 12M, and > some 22M. It's not dependant on what ssh is doing, as on all of these > machines > it's doing the same thing. > > Looking at the virtual memory of the sshd processes it appears different > linked libraries are using more virtual memory different hardware. > The biggest offender is /usr/lib/libgssapi_spnego.so.10. Below are the > virtual memory usages, and it appears it uses 2235, 9925, and 20295. The figure under "RES" is resident memory, not virtual memory. How much of the library was resident would depend on how much real memory was available, how much competition for memory there was, and might depend on what other processes were using that library. daniel feenberg > > Can anyone help me understand why? > Is there anyway to make sshd use the same amount of memory? > > Thanks! > > Machine1: > PID START END PRT RES PRES REF SHD FLAG TP > PATH > 3124 0x80440e000 0x80440f000 rw- 1 0 2 0 CN-- vn > /usr/lib/libgssapi_spnego.so.10 > 3124 0x804600000 0x805000000 rw- 2235 0 1 0 C-S- df > > Machine2: > PID START END PRT RES PRES REF SHD FLAG TP > PATH > 44052 0x80440e000 0x80440f000 rw- 1 0 2 0 CN-- vn > /usr/lib/libgssapi_spnego.so.10 > 44052 0x804600000 0x806e00000 rw- 9925 0 1 0 C-S- df > > Machine3: > PID START END PRT RES PRES REF SHD FLAG TP > PATH > 36973 0x80440e000 0x80440f000 rw- 1 0 2 0 CN-- vn > /usr/lib/libgssapi_spnego.so.10 > 36973 0x804600000 0x809800000 rw- 20295 0 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >