scooby87
73949daa98
filer: keep sequential prefetch within prefetchCount chunks ( #11674 )
...
ChunkReadAt.ReadAt asks the ReaderCache to prefetch after every read,
and MaybeCache counted only the downloads it newly started toward the
window, so each call reached prefetchCount chunks further than the last.
A reader consuming a chunk in several reads, as the S3 GET path does
with a 256 KiB copy buffer over 4 MiB chunks, ran the read-ahead up to
the ReaderCache downloader limit and kept most of a large object in
memory, enough to get an S3 gateway OOM-killed mid-response.
Count every chunk in the window, downloading or not, so the read-ahead
stays at prefetchCount chunks past the reader.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io >
2026-10-12 17:41:01 +08:00
..
2026-09-08 16:17:02 -07:00
2026-08-17 15:15:26 -07:00
2026-07-18 13:57:24 -07:00
2026-07-18 13:57:24 -07:00
2026-06-10 12:10:49 -07:00
2026-09-17 20:30:53 -07:00
2026-01-07 13:06:08 -08:00
2026-09-04 23:12:27 -07:00
2026-01-07 13:06:08 -08:00
2026-09-16 12:23:59 -07:00
2026-08-17 19:57:05 -07:00
2026-07-06 11:25:50 -07:00
2026-06-09 00:18:33 -07:00
2026-09-08 16:17:02 -07:00
2026-09-02 23:45:45 -07:00
2026-05-25 13:15:19 -07:00
2026-09-08 16:17:02 -07:00
2026-09-08 16:17:02 -07:00
2026-08-17 00:04:07 -07:00
2026-08-17 00:04:07 -07:00
2026-08-17 00:04:07 -07:00
2026-09-14 16:16:35 -07:00
2026-07-24 10:26:38 -07:00
2026-05-23 21:40:41 -07:00
2026-09-02 23:45:45 -07:00
2026-03-26 12:07:48 -07:00
2026-08-24 15:17:08 -07:00
2026-02-20 18:42:00 -08:00
2026-07-06 11:25:50 -07:00
2026-01-07 13:06:08 -08:00
2026-03-23 18:35:15 -07:00
2026-05-19 10:22:17 -07:00
2026-08-07 12:03:18 -07:00
2026-08-07 12:03:18 -07:00
2026-05-19 10:22:17 -07:00
2026-08-05 23:55:20 -07:00
2026-08-26 08:49:25 -07:00
2026-09-13 18:34:09 -07:00
2026-10-08 22:04:06 +08:00
2026-10-08 22:04:06 +08:00
2026-10-08 22:04:06 +08:00
2026-09-12 20:06:25 -07:00
2026-09-16 15:27:09 -07:00
2026-09-05 10:16:17 -07:00
2026-10-10 23:39:29 +08:00
2026-10-08 22:04:06 +08:00
2026-01-07 13:06:08 -08:00
2026-09-08 10:50:41 -07:00
2026-10-10 23:39:29 +08:00
2026-10-10 23:39:29 +08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-10-11 22:17:26 +08:00
2026-10-11 22:17:26 +08:00
2026-01-16 19:48:09 -08:00
2026-10-03 21:00:51 +08:00
2026-08-21 23:42:26 -07:00
2026-09-25 07:30:42 +08:00
2026-10-10 11:00:04 +08:00
2026-10-10 11:00:04 +08:00
2026-10-02 22:37:31 +08:00
2026-10-02 22:37:31 +08:00
2026-10-02 22:37:31 +08:00
2026-10-02 22:37:31 +08:00
2022-07-29 00:17:28 -07:00
2026-10-10 22:32:23 +08:00
2026-10-03 09:13:59 +08:00
2026-09-26 08:00:39 +08:00
2026-10-12 17:39:34 +08:00
2026-09-26 08:00:39 +08:00
2026-06-24 10:47:11 -07:00
2026-10-06 09:51:02 +08:00
2026-08-19 18:38:46 -07:00
2026-08-02 00:06:22 -07:00
2026-08-02 00:06:22 -07:00
2026-08-02 00:06:22 -07:00
2026-07-24 17:59:20 -07:00
2026-10-12 17:39:34 +08:00
2026-03-30 18:25:11 -07:00
2026-09-26 08:00:39 +08:00
2026-09-28 14:35:41 +08:00
2026-09-29 22:05:42 +08:00
2026-09-29 22:05:42 +08:00
2026-09-26 08:00:39 +08:00
2026-09-26 08:00:39 +08:00
2026-07-16 16:58:45 -07:00
2026-01-16 19:48:09 -08:00
2025-12-03 21:12:19 -08:00
2026-10-06 09:51:02 +08:00
2026-10-12 17:39:34 +08:00
2026-04-10 11:23:52 -07:00
2025-11-25 19:35:19 -08:00
2026-04-03 17:55:27 -07:00
2026-10-10 11:00:04 +08:00
2025-11-25 19:35:19 -08:00
2026-06-30 20:45:43 -07:00
2026-01-07 13:06:08 -08:00
2023-04-13 22:32:45 -07:00
2026-09-04 23:12:27 -07:00
2026-09-04 23:12:27 -07:00
2026-10-12 17:39:34 +08:00
2026-10-12 17:39:34 +08:00
2026-09-09 20:16:50 -07:00
2026-08-21 15:22:05 -07:00
2026-10-12 17:39:34 +08:00
2026-10-02 08:50:24 +08:00
2026-10-12 17:39:34 +08:00
2026-10-12 17:39:34 +08:00
2026-03-30 18:25:11 -07:00
2026-08-07 19:51:45 -07:00
2026-03-07 09:19:40 -08:00
2026-04-18 20:03:23 -07:00
2026-04-18 20:03:23 -07:00
2026-06-10 13:08:34 -07:00
2026-10-08 22:04:06 +08:00
2026-07-25 11:20:41 -07:00
2026-07-15 19:20:00 -07:00
2026-07-15 19:20:00 -07:00
2026-10-03 21:00:51 +08:00
2026-10-03 21:00:51 +08:00
2026-10-12 17:41:01 +08:00
2026-10-03 15:01:04 +08:00
2026-08-21 11:47:53 -07:00
2026-10-03 15:01:04 +08:00
2026-10-03 15:01:04 +08:00
2026-10-03 15:01:04 +08:00
2026-10-10 06:52:37 +08:00
2026-10-12 17:41:01 +08:00
2026-10-03 15:01:04 +08:00
2026-10-03 15:01:04 +08:00
2026-08-12 23:00:10 -07:00
2026-08-12 23:00:10 -07:00
2026-09-13 14:43:55 -07:00
2026-09-26 08:00:39 +08:00
2022-08-30 09:37:52 -07:00
2025-07-16 23:39:27 -07:00
2026-04-10 17:31:14 -07:00
2026-09-04 16:39:36 -07:00
2026-09-13 18:34:09 -07:00
2026-04-03 19:57:30 -07:00
2026-09-03 11:51:48 -07:00
2026-09-11 19:44:30 -07:00
2026-10-04 17:37:26 +08:00
2026-10-10 23:39:29 +08:00
2024-11-04 12:08:25 -08:00