Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2018 15:39:14 -0400 (EDT)
From:      Daniel Feenberg <feenberg@nber.org>
To:        Francis Bacon <chode128@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sshd virtual memory usage on different hardware
Message-ID:  <alpine.LRH.2.21.1804101537180.19104@sas1.nber.org>
In-Reply-To: <CABRbKLy+twy-rvdmqTQCwwqPVC0MwOpMfYFz-h6DM9s3BfDM1w@mail.gmail.com>
References:  <CABRbKLy+twy-rvdmqTQCwwqPVC0MwOpMfYFz-h6DM9s3BfDM1w@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help



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"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.LRH.2.21.1804101537180.19104>