lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20181002150708.GF9127@quack2.suse.cz> Date: Tue, 2 Oct 2018 17:07:08 +0200 From: Jan Kara <jack@...e.cz> To: Christoph Hellwig <hch@...radead.org> Cc: Jan Kara <jack@...e.cz>, Johannes Thumshirn <jthumshirn@...e.de>, Dan Williams <dan.j.williams@...el.com>, Dave Jiang <dave.jiang@...el.com>, linux-nvdimm@...ts.01.org, linux-mm@...ck.org, linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org, linux-xfs@...r.kernel.org, linux-api@...r.kernel.org Subject: Re: Problems with VM_MIXEDMAP removal from /proc/<pid>/smaps On Tue 02-10-18 07:37:13, Christoph Hellwig wrote: > On Tue, Oct 02, 2018 at 04:29:59PM +0200, Jan Kara wrote: > > > OK naive question from me, how do we want an application to be able to > > > check if it is running on a DAX mapping? > > > > The question from me is: Should application really care? > > No, it should not. DAX is an implementation detail thay may change > or go away at any time. I agree that whether / how pagecache is used for filesystem access is an implementation detail of the kernel. OTOH for some workloads it is about whether kernel needs gigabytes of RAM to cache files or not, which is not a detail anymore if you want to fully utilize the machine. So people will be asking for this and will be finding odd ways to determine whether DAX is used or not (such as poking in smaps). And once there is some widely enough used application doing this, it is not "stupid application" problem anymore but the kernel's problem of not maintaining backward compatibility. So I think we would be better off providing *some* API which applications can use to determine whether pagecache is used or not and make sure this API will convey the right information even if we change DAX implementation or remove it altogether. Honza -- Jan Kara <jack@...e.com> SUSE Labs, CR
Powered by blists - more mailing lists