All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Handle mmaped regions in cache
@ 2015-03-06 14:03 Petr Tesarik
  2015-03-06  8:23 ` [PATCH v2 1/8] cache: get rid of search loop in cache_add() Petr Tesarik
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: Petr Tesarik @ 2015-03-06 14:03 UTC (permalink / raw)
  To: Atsushi Kumagai, Michael Holzheu; +Cc: kexec mailing list, Jan Willeke

Because all pages must go into the cache, data is unnecessarily
copied from mmapped regions to cache. Avoid this copying by storing
the mmapped regions directly in the cache.

First, the cache code needs a clean up clarification of the concept,
especially the meaning of the pending list (allocated cache entries
whose content is not yet valid).

Second, the cache must be able to handle differently sized objects
so that it can store individual pages as well as mmapped regions.

Last, the cache eviction code must be extended to allow either
reusing the read buffer or unmapping the region.

Changelog:
  v2: cache cleanup _and_ actuall mmap implementation
  v1: only the cache cleanup

Petr Tesarik (8):
  cache: get rid of search loop in cache_add()
  cache: allow to return a page to the pool
  cache: do not allocate from the pending list
  cache: add hit/miss statistics to the final report
  cache: allocate buffers in one big chunk
  cache: allow arbitrary size of cache entries
  cache: store mapped regions directly in the cache
  cleanup: remove unused page_is_fractional

 cache.c        |  81 +++++++++++++++++----------------
 cache.h        |  16 +++++--
 elf_info.c     |  16 -------
 elf_info.h     |   2 -
 makedumpfile.c | 138 ++++++++++++++++++++++++++++++++++-----------------------
 5 files changed, 138 insertions(+), 115 deletions(-)

-- 
1.8.4.5


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-03-16  8:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 14:03 [PATCH v2 0/8] Handle mmaped regions in cache Petr Tesarik
2015-03-06  8:23 ` [PATCH v2 1/8] cache: get rid of search loop in cache_add() Petr Tesarik
2015-03-06  8:52 ` [PATCH v2 2/8] cache: allow to return a page to the pool Petr Tesarik
2015-03-06  8:59 ` [PATCH v2 3/8] cache: do not allocate from the pending list Petr Tesarik
2015-03-06  9:26 ` [PATCH v2 4/8] cache: add hit/miss statistics to the final report Petr Tesarik
2015-03-06 13:07 ` [PATCH v2 5/8] cache: allocate buffers in one big chunk Petr Tesarik
2015-03-06 13:10 ` [PATCH v2 6/8] cache: allow arbitrary size of cache entries Petr Tesarik
2015-03-06 13:23 ` [PATCH v2 7/8] cache: store mapped regions directly in the cache Petr Tesarik
2015-03-06 13:28 ` [PATCH v2 8/8] cleanup: remove unused page_is_fractional Petr Tesarik
2015-03-09 16:08 ` [PATCH v2 0/8] Handle mmaped regions in cache Michael Holzheu
2015-03-09 16:08 ` [PATCH v2 0/8] Handle mmaped regions in cache [more analysis] Michael Holzheu
2015-03-12 13:56   ` Michael Holzheu
2015-03-12 15:38   ` Petr Tesarik
2015-03-13  4:10     ` Atsushi Kumagai
2015-03-13  8:04       ` Petr Tesarik
2015-03-16  5:14         ` Atsushi Kumagai
2015-03-16  7:26           ` Petr Tesarik
2015-03-16  8:06             ` Atsushi Kumagai
2015-03-16  8:24               ` Petr Tesarik
2015-03-13 16:19     ` Michael Holzheu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.