lkml.org 
[lkml]   [2006]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] kernel facilities for cache prefetching
On Tue, May 02, 2006 at 09:10:01PM +0200, Pavel Machek wrote:
> > $ echo "file /dev/hda1" > /proc/filecache
> > $ cat /proc/filecache
> > # file /dev/hda1
> > # mask 0
> > #
> > # idx len
> > 0 24
> > 48 2
> > 53 5
> > ......
>
> Could we use this instead of blockdev freezing/big suspend image
> support? It should permit us to resume quickly (with small image), and
> then do readahead. ... that will give us usable machine quickly, still
> very responsive desktop after resume?

Badari's usage case inspired me that on suspension we can
- first invoke a user-land tool to do all the cache
status-logging/analyzing/selective-dropping jobs
- then let the kernel write all the remaining caches(made up of many
small chunks) to the suspend image

And do the reverse things on restoring.
With that we moved all the strategies to userspace.

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

\
 
 \ /
  Last update: 2006-05-04 14:30    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean