{"id":2874,"url":"https://patchwork.libcamera.org/api/covers/2874/?format=json","web_url":"https://patchwork.libcamera.org/cover/2874/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200224193601.1040770-1-niklas.soderlund@ragnatech.se>","date":"2020-02-24T19:35:57","name":"[libcamera-devel,v2,0/4] libcamera: V4L2BufferCache: Improve cache eviction strategy","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/2874/mbox/","series":[{"id":691,"url":"https://patchwork.libcamera.org/api/series/691/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=691","date":"2020-02-24T19:35:57","name":"libcamera: V4L2BufferCache: Improve cache eviction strategy","version":2,"mbox":"https://patchwork.libcamera.org/series/691/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2874/comments/","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 911B96042F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 24 Feb 2020 20:36:24 +0100 (CET)","from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de\n\t[79.202.35.146]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid e5941d26-573c-11ea-9f40-0050569116f7;\n\tMon, 24 Feb 2020 20:36:18 +0100 (CET)"],"X-Halon-ID":"e5941d26-573c-11ea-9f40-0050569116f7","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 24 Feb 2020 20:35:57 +0100","Message-Id":"<20200224193601.1040770-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.25.0","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/4] libcamera: V4L2BufferCache:\n\tImprove cache eviction strategy","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Mon, 24 Feb 2020 19:36:24 -0000"},"content":"Hello,\n\nThis small series improves the function of the V4L2BufferCache and how\nit selects which cache entries to evict. This solves a real issue where \nif the cache is not pre-allocated the cache can perform suboptimally and \nnot utilise all the entries in the cache.\n\nPatch 1/4 fix an error in the test class BufferSource found as code in \nv1 of this series was based on it. 2/4 Extracts the BufferSource from \nthe camera buffer import test so it can be used in 3/4 where the test \nfor the V4L2BufferCache is added. Patch 3/4 also add tests which breaks \nwithout the improved cache eviction strategy introduced in 4/4.\n\nNiklas Söderlund (4):\n  test: camera: buffer_import: Fix error messages\n  test: Extract BufferSource class out of camera tests to libtest\n  test: v4l2_videodevice: Add test for V4L2BufferCache\n  libcamera: V4L2BufferCache: Improve cache eviction strategy\n\n src/libcamera/include/v4l2_videodevice.h |   1 +\n src/libcamera/v4l2_videodevice.cpp       |   9 +-\n test/camera/buffer_import.cpp            |  92 +---------\n test/libtest/buffer_source.cpp           |  98 +++++++++++\n test/libtest/buffer_source.h             |  32 ++++\n test/libtest/meson.build                 |  11 +-\n test/v4l2_videodevice/buffer_cache.cpp   | 215 +++++++++++++++++++++++\n test/v4l2_videodevice/meson.build        |   1 +\n 8 files changed, 361 insertions(+), 98 deletions(-)\n create mode 100644 test/libtest/buffer_source.cpp\n create mode 100644 test/libtest/buffer_source.h\n create mode 100644 test/v4l2_videodevice/buffer_cache.cpp"}