From: Matthew Wilcox <willy@infradead.org>
To: Timofey Titovets <timofey.titovets@synesis.ru>
Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
linux-mm@kvack.org, Timofey Titovets <nefelim4ag@gmail.com>
Subject: Re: [PATCH v2] ksm: allow dedup all tasks memory
Date: Sun, 11 Nov 2018 19:58:38 -0800 [thread overview]
Message-ID: <20181112035838.GF21824@bombadil.infradead.org> (raw)
In-Reply-To: <20181111212610.25213-1-timofey.titovets@synesis.ru>
On Mon, Nov 12, 2018 at 12:26:10AM +0300, Timofey Titovets wrote:
> ksm by default working only on memory that added by
> madvice().
>
> And only way get that work on other applications:
> - Use LD_PRELOAD and libraries
> - Patch kernel
>
> Lets use kernel task list in ksm_scan_thread and add logic to allow ksm
> import VMA from tasks.
> That behaviour controlled by new attribute: mode
> I try mimic hugepages attribute, so mode have two states:
> - normal - old default behaviour
> - always [new] - allow ksm to get tasks vma and try working on that.
>
> To reduce CPU load & tasklist locking time,
> ksm try import VMAs from one task per loop.
>
> So add new attribute "mode"
> Two passible values:
> - normal [default] - ksm use only madvice
> - always [new] - ksm will search vma over all processes memory and
> add it to the dedup list
Do you have any numbers for how much difference this change makes with
various different workloads?
next prev parent reply other threads:[~2018-11-12 3:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-11 21:26 Timofey Titovets
2018-11-12 3:58 ` Matthew Wilcox [this message]
2018-11-12 16:16 ` Timofey Titovets
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181112035838.GF21824@bombadil.infradead.org \
--to=willy@infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nefelim4ag@gmail.com \
--cc=timofey.titovets@synesis.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox