Commit Graph

12 Commits

Author SHA1 Message Date
localhorst f0246a60d2 Improve shred throughput with adaptive chunksize (#98)
Measure Throughput
     │
     ▼
throughput > best?
     │
 ┌───┴───┐
YES     NO
 │       │
 │       ▼
 │   currentChunk == bestChunk?
 │       │
 │   ┌───┴───┐
 │  YES     NO
 │   │       │
 │   ▼       ▼
 │ throughput < best?  Nichts tun
 │   │
 │ ┌─┴─┐
 │YES NO
 │ │   │
 │ ▼   ▼
 │UPDATE!
 │BEST!
 │
 ▼
UPDATE
BOTH!

Reviewed-on: #98
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2026-05-03 10:06:14 +02:00
localhorst 228d8ecf6c Missing Check for lseek Return Value 2025-12-09 21:31:31 +01:00
localhorst 70dda97ae2 autoformat all sources 2024-04-24 22:31:09 +02:00
localhorst bb69a59794 fix frozen and metric for checking iteration 2022-08-23 23:20:50 +02:00
localhorst d92448aa97 optimal chunk size 2022-08-22 23:09:41 +02:00
localhorst 09446b52ca using tfng instead of urandom 2022-08-22 15:27:29 +02:00
localhorst b6f0c5e89f fix missing include 2022-08-20 16:11:48 +02:00
localhorst e3aefb24ee added feature to start shredding for all drives 2022-08-20 16:09:40 +02:00
localhorst 7f0926a271 removed flush in shred 2022-05-15 21:28:28 +02:00
localhorst e49c1a231c read random date in bulk to reduce syscalls 2022-05-15 15:17:49 +02:00
localhorst 4fc44d9926 changed progress percentage calculation 2022-05-14 15:21:14 +02:00
localhorst c8a3220c3a using now own shred impl with check if the complete drive is full of zeros after shredding 2022-05-14 14:06:16 +02:00