The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
--- Begin Message ---

Hmm... that looks weird at first,
I was checking kernel counters at /sys/block/zram0/io_stat,
which is zram device for swap. And if there was positive counter for discards for zram device while swap was not sending any discards than
what is that counter is about?
Have you checked if stressing swap with some push/pull paging load indeed keeps ram occupied at max level? Analyzing /sys/block/$zdev/mm_stat could also help there. I do not remember mem leaks issues when tested stats script, but who knows...
Need to take a closer look into this.
Thanks!


On 25.06.2020 01:39, Rui Salvaterra wrote:
Hi, Emil,

On Wed, 24 Jun 2020 at 20:30, Emil Muratov <[email protected]> wrote:
zram swap discard is enabled by default, no need to specify additional
option. Pls, check for example info output in
https://github.com/openwrt/openwrt/pull/1515
Unfortunately, that's not quite right. This has nothing to do with
zram itself, but with the way swapon syscall works. Yes, both discard
*policies* are enabled by default if, *and only if* the syscall is
invoked with *only* the SWAP_FLAG_DISCARD flag set [1].
Anyway, it's easy to see if the swap device is issuing trim/discard
commands. For example, on my router, with my patch:

root@heimdal:~# dmesg | grep swap
[   12.302928] Adding 1036284k swap on /dev/zram0.  Priority:-2
extents:1 across:1036284k SSDsc
root@heimdal:~#

According to the relevant section of the kernel source code [2], The
last letters, SSDsc mean:
SS: solid state (obviously, it's a RAM-based device)
D: supports discard
s: area-based discard is enabled
c: page-based discard is enabled

Consequently, if a system only shows SS, discard commands aren't being issued.

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/swap.h?h=linux-4.14.y#n24
[2] 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/mm/swapfile.c?h=linux-4.14.y#n3283

Cheers,
Rui




--- End Message ---
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/openwrt-devel

Reply via email to