El sáb., 15 ago. 2020 a las 14:58, Chris Murphy (<li...@colorremedies.com>)
escribió:

> On Sat, Aug 15, 2020 at 11:54 AM Chris Murphy <li...@colorremedies.com>
> wrote:
> >
> > On Sat, Aug 15, 2020 at 11:09 AM Sergio Belkin <seb...@gmail.com> wrote:
> > >
> > >
> > >
> > > > However swap usage is still high :
> > > > free -m
> > > >               total        used        free      shared  buff/cache
>  available
> > > > Mem:          15887        8577        1187        4587        6123
>       2382
> > > > Swap:          4095        3854         241
> > > >
> > > > It's weird, isn't it?
> > >
> > > >> It's consistent. Only ~240 MB of 900M for PK had been evicted to
> swap.
> > > >> When restarting PK, it dropped those 240MB in swap. Free memory also
> > > >> went up no doubt. I don't know why it's using so much memory, what
> all
> > > >> these anonymous pages are. If you catch it going above 500M, check
> > > >> /proc/pid/status and let's see what the breakdown is of memory
> usage.
> > >
> > > Ok but smem tell me that around 300M is swap used, and the ~3.5G
> remaining???
> > > Is there a way to find the culprit processes?
> > > Thanks in advance!
> >
> > I'm not familiar enough with smem to know what it does or why it's
> > missing things, but
> >
> > for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 "
> > "$3}END{ print ""}' $file; done | sort -k 2 -n -r | less
> >
> > Finds more things using swap than smem. As in, smem isn't showing
> > packagekitd for me at all, and yet /proc/pid/status for pk is showing
> > VmSwap is 16M, which at the moment is 20% of swap.
> >
> > What do you get for zramctl?
>
> Ok for some reason 'sudo' gets me different results with smem. Try this:
>
> sudo smem -t --sort swap
>
>
> --
> Chris Murphy
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>

Oops, sorry I've read this a bit late... but I tell you what I did and HTH
someone:
I Closed app by app: firefox, two lxc containers, etc and then I logged out
(no reboot), and swap kept on the same level
Then I login again
After logout and re-login with plasma with wayland (I could not use kde
with Xorg.... I have issues re-logging, I guess that has to do with this
bug:
https://fedoraproject.org/wiki/Common_F32_bugs#User_switching.2Fre-logging_in_KDE_might_often_lead_to_a_black.2Ffrozen_screen

Right now I have this with sudo smem -c "pid name swap pss" -s swap -k -t
<snip>
 4105 cleanupd                     2.5M   132.0K
731103 firewalld                    2.7M    23.7M
 4528 powerline-daemo              3.3M    11.2M
 5078 colord                       3.4M     2.0M
 4062 (sd-pam                      4.0M    28.0K
 4061 (sd-pam                      4.1M    12.0K
-------------------------------------------------
  206                             70.0M     3.4G
</snip>

And with free -m:

total        used        free      shared  buff/cache   available
Mem:          15887        3254        1662         804       10969
11486
Swap:          4095          62        4033

Huge difference, I don't know, There is something bad with plasma, isn't
it?  :)

I don't know if is useful now:
 zramctl
NAME       ALGORITHM DISKSIZE  DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle         4G 62,7M   21M 53,8M       4 [SWAP]


TIA
-- 
--
Sergio Belkin
LPIC-2 Certified - http://www.lpi.org
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to