Commit graph

869 commits

Author SHA1 Message Date
Igor Katson
8a86d04631 Dont spam haves 2024-05-03 20:24:39 +04:00
Igor Katson
44aa75f34b Reimplement maybe_transmit_haves with a broadcast channel 2024-05-03 20:24:39 +04:00
Igor Katson
7ed7e277c0 maybe_transmit_haves: need to optimise 2024-05-03 20:24:39 +04:00
Igor Katson
70c2c38329 argh... 2024-05-03 20:24:39 +04:00
Igor Katson
0431584b19 pread/pwrite 2024-05-03 20:24:39 +04:00
Igor Katson
b3cb194700 Downgrade a couple messages 2024-05-03 20:24:39 +04:00
Igor Katson
eafd274a0b --defer-writes-up-to 2024-05-03 20:24:39 +04:00
Igor Katson
a3c4ca70fb Nothing 2024-05-03 20:24:39 +04:00
Igor Katson
3769cae1ce dont blow up memory 2024-05-03 20:24:39 +04:00
Igor Katson
e9617e7f80 Fix slow.rs 2024-05-03 20:24:39 +04:00
Igor Katson
4fbb3530ea Remove unnecessary dependency 2024-05-03 20:24:39 +04:00
Igor Katson
2625896263 Remove "bad ip" comment again 2024-05-03 20:24:39 +04:00
Igor Katson
0f1d07409d Cleaning up 2024-05-03 20:24:39 +04:00
Igor Katson
43008f2857 Less work when defer writes is disabled 2024-05-03 20:24:39 +04:00
Igor Katson
573185bcfa Remove async_trait 2024-05-03 20:24:39 +04:00
Igor Katson
1744f0c101 Disk write queue 2024-05-03 20:24:39 +04:00
Igor Katson
e658b960e3 read_buf: use unsafe but remove callback 2024-05-03 20:24:39 +04:00
Igor Katson
01cbeabd51 nothing... 2024-05-03 20:24:39 +04:00
Igor Katson
68c6fb2547 ...wtf... 2024-05-03 20:24:39 +04:00
Igor Katson
122b22c2e5 Nothing, blocking threads = 8 2024-05-03 20:24:39 +04:00
Igor Katson
16a28a4d96 Restore simulation 2024-05-03 20:24:39 +04:00
Igor Katson
86c95e7c71 Checking once more 2024-05-03 20:24:39 +04:00
Igor Katson
640d2c31bc Debugging 2024-05-03 20:24:39 +04:00
Igor Katson
ca9afa8535 Add per piece locks 2024-05-03 20:24:39 +04:00
Igor Katson
e53f5a7f23 Fix the ordering bug in deferred writes, but its a slow fix 2024-05-03 20:24:39 +04:00
Igor Katson
438392da1d Perfect sim is working! 2024-05-03 20:24:39 +04:00
Igor Katson
4ac512121b Fix Cargo.toml for optional features 2024-05-03 20:24:39 +04:00
Igor Katson
0b1499aa10 Make all experimental storages optional 2024-05-03 02:53:52 +04:00
Igor Katson
0a1d389bc7 Remove a hack 2024-05-03 02:53:52 +04:00
Igor Katson
54b17d5ee1 Write through cache impl 2024-05-03 02:53:52 +04:00
Igor Katson
427f490a61 Clone storage factories... 2024-05-03 02:53:52 +04:00
Igor Katson
07a5b69a25 Hacked in mmap default 2024-05-03 02:53:52 +04:00
Igor Katson
79a523f2fe Add --experimental-mmap-storage 2024-05-03 02:53:52 +04:00
Igor Katson
ed05ffc6f7 Create mmap file storage 2024-05-03 02:53:52 +04:00
Igor Katson
7031023a31 Move filesystem storage into a different folder 2024-05-03 02:53:52 +04:00
Igor Katson
2c500049e8 Move around storage into folders 2024-05-03 02:53:52 +04:00
Igor Katson
6233cc9d12 better type_id for nested storages 2024-05-03 02:53:52 +04:00
Igor Katson
776c865781 Remove unused disk_work_queue_tx 2024-05-03 02:53:52 +04:00
Igor Katson
f0b63b5926 A few renames in generics 2024-05-03 02:53:52 +04:00
Igor Katson
9bcd18e7af It really helps to write to disk in a separate thread! 2024-05-03 02:53:52 +04:00
Igor Katson
fa557cedd9 another attempt (sucks) 2024-05-03 02:53:52 +04:00
Igor Katson
7e71e4188f Dirty fix to test previous commit 2024-05-03 02:53:52 +04:00
Igor Katson
d03943db8d Another disk indirectio attempt 2024-05-03 02:53:52 +04:00
Igor Katson
d25309e358 Defer writes command line flag 2024-05-03 02:53:52 +04:00
Igor Katson
b8bbe6a87f Move disk writes to a queue 2024-05-03 02:53:52 +04:00
Igor Katson
ce7c7a3f89 Getting ~5-6 mbs 2024-05-03 02:53:52 +04:00
Igor Katson
f3a4e99bb6 allowlist ip 2024-05-03 02:53:52 +04:00
Igor Katson
b597ee0fad Slowdown again 2024-05-03 02:53:52 +04:00
Igor Katson
5027d8ccd1 All storage factories are generic now 2024-05-03 02:53:52 +04:00
Igor Katson
e4adfa569a storages generics 2024-05-03 02:53:52 +04:00