[dm-devel] [PATCH] x86: introduce memcpy_flushcache_clflushopt

2020-04-17 Thread Mikulas Patocka
On Thu, 16 Apr 2020, Dan Williams wrote: > On Thu, Apr 16, 2020 at 1:24 AM Mikulas Patocka wrote: > > > > > > > > On Thu, 9 Apr 2020, Mikulas Patocka wrote: > > > > > With dm-writecache on emulated pmem (with the memmap argument), we get > > > > > > With the original kernel: > > > 8508 -

Re: [dm-devel] [RFC] IMA: New IMA measurements for dm-crypt and selinux

2020-04-17 Thread Tushar Sugandhi
On 2020-04-13 6:11 p.m., Mimi Zohar wrote: On Sun, 2020-04-12 at 11:15 +0300, Lev R. Oshvang . wrote: On Sat, Apr 11, 2020 at 10:07 PM Stephen Smalley It sees to me that LKRG (kernel run time guard) takes the role of measuring kernel structures. Perhaps you need to consult with LKRG guys.

[dm-devel] [PATCH 2/2] md: Add Historical Service Time Path Selector

2020-04-17 Thread Gabriel Krisman Bertazi
From: Khazhismel Kumykov This new selector keeps an exponential moving average of the service time for each path (losely defined as delta between start_io and end_io), and uses this along with the number of inflight requests to estimate future service time for a path. Since we don't have a

Re: [dm-devel] [RFC] IMA: New IMA measurements for dm-crypt and selinux

2020-04-17 Thread Tushar Sugandhi
On 2020-04-08 9:34 a.m., Casey Schaufler wrote: On 4/8/2020 3:19 AM, Tushar Sugandhi wrote: B. Measuring selinux constructs:     We propose to add an IMA hook in enforcing_set() present under     security/selinux/include/security.h.     enforcing_set() sets the selinux state to

Re: [dm-devel] [RFC] IMA: New IMA measurements for dm-crypt and selinux

2020-04-17 Thread Tushar Sugandhi
On 2020-04-12 1:15 a.m., Lev R. Oshvang . wrote: It sees to me that LKRG (kernel run time guard) takes the role of measuring kernel structures. Perhaps you need to consult with LKRG Thanks Lev for the feedback. I will investigate more into it. guys. Lev. -- dm-devel mailing list

[dm-devel] [PATCH 0/2] Historical Service Time Path Selector

2020-04-17 Thread Gabriel Krisman Bertazi
Hello, This small series implements a new path selector that leverages historical path IO time in order to estimate future path performance. Implementation details can be found on Patch 2. This selector yields better path distribution, considering the mean deviation from the calculated optimal

[dm-devel] [PATCH 1/2] md: Expose struct request to path selector

2020-04-17 Thread Gabriel Krisman Bertazi
From: Khazhismel Kumykov This allows a path selector to access metadata such as request start and end time. nr_bytes is retained for end_io, as blk_rq_bytes represents the number of bytes *left* in a request, and is 0 after a request is finished. Signed-off-by: Khazhismel Kumykov

Re: [dm-devel] [RFC] IMA: New IMA measurements for dm-crypt and selinux

2020-04-17 Thread Tushar Sugandhi
On 2020-04-08 9:28 a.m., Milan Broz wrote: On 08/04/2020 12:19, Tushar Sugandhi wrote: Proposal: - A. Measuring dmcrypt constructs: We can add an IMA hook in crypt_ctr() present in drivers/md/dm-crypt.c, so that IMA can start measuring the status of various