I don't know anything about smem. Have you tried reading the manpage? man
smem

On Tue, Aug 30, 2022 at 5:21 PM American Citizen <[email protected]>
wrote:

> Running smem -s uss -r and free commands seems to show discrepancies.
> What is the correct account of physical memory usage?
>
> %smem -s uss -t -r
>
> >   PID User Command                         Swap      USS      PSS RSS
> > 28305 owner    /usr/local/magma/magma.exe         0  6023928 6023975
> > 6026236
> >  1594 owner    /usr/bin/plasmashell               0   347252 357093
> > 404536
> >  1579 owner    /usr/bin/kwin_x11                  0 32284    35022
> > 59544
> >  1576 owner    /usr/bin/kded5                     0 28228    30108
> > 48664
> >  1662 owner    /usr/bin/konsole -session 1        0 24704    27076
> > 39320
> >   778 owner    /usr/bin/konsole                   0 22044    32783
> > 98000
> > 14893 owner    /usr/bin/konsole                   0 21656    32897
> > 99576
> >  7772 owner    /usr/bin/konsole                   0 21244    32110
> > 98168
> >  9221 owner    /usr/bin/konsole                   0 19396    30104
> > 96660
> > 14997 owner    /usr/bin/konsole                   0 18584    28309
> > 92576
> > (more lines...)
> >
> -------------------------------------------------------------------------------
> >   107 1                                           0  6897956 7011198
> > 7892704
> %free
> > total        used        free      shared  buff/cache available
> > Mem:       32792684    20144052     3561056       38612 9087576
> > 12146680
> > Swap:      33581120         268    33580852
> >
> > Why is smem showing about 6.89 to 7.89 gigs of memory used, when the
> > free command is
> >  showing 20.144 gigs used. Who is right?
> >
> > Is there any CLI command which gets this right? It is discouraging to
> > have commands report different totals, when you are expecting some
> > real accounting and some true idea of what is happening with your system.
>
> - Randall
>
>
>

Reply via email to