{"id":2956,"url":"https://patchwork.libcamera.org/api/covers/2956/?format=json","web_url":"https://patchwork.libcamera.org/cover/2956/","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":"<20200304232246.325384-1-niklas.soderlund@ragnatech.se>","date":"2020-03-04T23:22:39","name":"[libcamera-devel,v3,0/7] libcamera: V4L2BufferCache: Improve cache","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/2956/mbox/","series":[{"id":701,"url":"https://patchwork.libcamera.org/api/series/701/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=701","date":"2020-03-04T23:22:39","name":"libcamera: V4L2BufferCache: Improve cache","version":3,"mbox":"https://patchwork.libcamera.org/series/701/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2956/comments/","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net\n\t[195.74.38.229])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8AC9262734\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  5 Mar 2020 00:23:45 +0100 (CET)","from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de\n\t[79.202.35.146]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA\n\tid 2c78ce96-5e6f-11ea-9f85-005056917a89;\n\tThu, 05 Mar 2020 00:23:44 +0100 (CET)"],"X-Halon-ID":"2c78ce96-5e6f-11ea-9f85-005056917a89","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":"Thu,  5 Mar 2020 00:22:39 +0100","Message-Id":"<20200304232246.325384-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/7] libcamera: V4L2BufferCache:\n\tImprove cache","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":"Wed, 04 Mar 2020 23:23:45 -0000"},"content":"Hello,\n\nThis 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/7 fix an error in the test class BufferSource found as code in\nv1 of this series was based on it. 2/7 Extracts the BufferSource from\nthe camera buffer import test so it can be used in the new test\nfor the V4L2BufferCache. Patch 3/7, 4/7 and 5/7 fix small issues with \nthe V4L2BufferCache pointed out in review of v2. Patch 6/7 add tests \nwhich breaks without the improved cache eviction strategy introduced in \n7/7.\n\nNiklas Söderlund (7):\n  test: camera: buffer_import: Fix error messages\n  test: Extract BufferSource class out of camera tests to libtest\n  libcamera: V4L2BufferCache: Mark Entry::operator==() as const\n  libcamera: V4L2BufferCache: Use the entry reference\n  libcamera: V4L2BufferCache: Check for hot hit first\n  test: v4l2_videodevice: Add test for V4L2BufferCache\n  libcamera: V4L2BufferCache: Improve cache eviction strategy\n\n src/libcamera/include/v4l2_videodevice.h |   7 +-\n src/libcamera/v4l2_videodevice.cpp       |  28 +--\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, 375 insertions(+), 109 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"}