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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 16 Nov 2007 10:30:12 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Lee Revell <rlrevell@...-job.com>
CC:	Stefan Monnier <monnier@....umontreal.ca>,
	linux-kernel@...r.kernel.org
Subject: Re: Treat disk space like memory space

Lee Revell wrote:
> On Nov 15, 2007 5:24 PM, Stefan Monnier <monnier@....umontreal.ca> wrote:
>> [ I realize this is probably better implemented outside of the kernel, but
>>   it seems like it might be of interest here.  Please redirect me to
>>   a more appropriate place if you can think of one (other than
>>   /dev/null that is).  ]
> 
> It would require some kernel support to reclaim the storage from the
> caching application rather than returning -ENOSPC when a "normal" app
> needs the storage.  Even if you make the caching app free the space by
> itself you need a kernel mechanism to signal it when this happens.
> 

In particular, you need a way to hold off the "real" application until 
disk reclaim is done.

If you do it purely in userspace (asynchronously) then it's subject to 
ENOSPC while the reclaimer runs.

This, by the way, has been discussed on and off -- often in the context 
of undelete (which is an identical problem.)  The problem usually is 
that performance of real storage users suffer because of locality 
issues.  However, flash storage doesn't have locality requirements...

	-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ