From owner-freebsd-questions@freebsd.org Tue Apr 10 18:22:36 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 7A934F8D587 for ; Tue, 10 Apr 2018 18:22:36 +0000 (UTC) (envelope-from chode128@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (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 C94A975860 for ; Tue, 10 Apr 2018 18:22:35 +0000 (UTC) (envelope-from chode128@gmail.com) Received: by mail-it0-x244.google.com with SMTP id 71-v6so16014433ith.2 for ; Tue, 10 Apr 2018 11:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=E+psrWLnmYOlrhJ+0nNtfXzMzzZ0Lx8OQ75yVDZswcM=; b=ZzGQFFe0BcWWDZjJhelIgJcXxfv2mqpL5v7DBzlDrGT3fsCbobsSlCHHlb3cP1BYMQ QaI/Ba3MXNG3MZ8cXU197mcRt9tbEnbP+iMYPE+vMsSQCTpSUzN+Zj5AZHiBzFSWCDBi 3xiV3rV3bk7bidZodz/5TH0Q4/Aj6mCjVoqlK2q4e1Sh/kgXfnr16DL7ehlWrh+wRuyl 8f67xJKU0bvt0qHV0Zx63q4FYjzy8rJti42p5neGOucTBA4IZFQdOj61AFHCg/47SSSb Uwu0Rn3aWlgGAlcuL7H3vuJhsjQMl2f6/rmjzCPj/fNEJ2ptW6UbMzx1X1jAlvF7UFBL OCUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=E+psrWLnmYOlrhJ+0nNtfXzMzzZ0Lx8OQ75yVDZswcM=; b=YlOuwsnhRQr4yHC+tDyChEG+3uLFzXLxpol3NHITxmAnE/WuH5sgSUFMz8I2BfPXVM 0Kf6e6lLLUTmRTFXLQlDD8zpPvMAzQYCdgGGJDOCBJnCN2U53mfl28QjhypDZjS1g5U2 OXkyIDuwSe31V1WZj26kRClVSyCaOgGh/isAEn/yPNN8xxZcApzXHXr23vKyShBTzL1w BEpRwbD3RfkxVTKcEmQphP/6Zve+adx+XMyMGsdJs6tbdCW4zPS1Ilr7A16QBsuBfawB CwWxhPCa+XsRSEk/SUKLKi6EUDwC2obpcvYPY+12dUiC9gIN/qz/NC7PXZeY503m+fzd kC6A== X-Gm-Message-State: ALQs6tCAUn8LBRHFzzvxUGOlvZ626wqPrOX+0YcizcOeyuQ+nUoRCLSW 4JnO6W4RqYpf6foTO3o0IX86sUI/+shGnTNQFAt0LpxS8g== X-Google-Smtp-Source: AIpwx4+pIRRVti8svhPa7uTsWyvaH1SEuryzuhDMoWESUEiinI30S4hInnte124QmwsFJi/RfElnv3A8nY2AVSwNKzk= X-Received: by 2002:a24:79cf:: with SMTP id z198-v6mr689024itc.60.1523384554830; Tue, 10 Apr 2018 11:22:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.83.200 with HTTP; Tue, 10 Apr 2018 11:22:34 -0700 (PDT) From: Francis Bacon Date: Tue, 10 Apr 2018 12:22:34 -0600 Message-ID: Subject: sshd virtual memory usage on different hardware To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 18:22:37 -0000 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. 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