1:38:20ebrascaI am not sure if this blocks are better as :wired or not.
1:41:12fittestbits__Hmm. I think they need to wired, you don't want the cached blocks to be paged out to swap. That would defeat the whole purpose of having them cached - to avoid disk operations.
1:42:13fittestbits__I wonder if wired pages are can become unwired if everything on them has been freed by GC.
1:42:41ebrascaThen we are going to copy from :wired to :wired in block-device-read .
1:44:57fittestbits__Perhaps we need a different interface - block-device-read-wired. Which takes a wired buffer instead of an unwired buffer and doesn't do a copy for the supervisor disk driver.
1:45:25fittestbits__USB will still have to do a copy from physical memory to wired memory.
1:46:11ebrascaI don't know about USB, I trust you know!
1:48:59ebrascaI am ok with block-device-read-wired .
1:51:04ebrascaTODO: Add dirty bit to each block or have some other structure for it.
1:54:49fittestbits__Yeah, you probably need to have some kind of structure as the hash value instead of just the buffer - one of the elements of the structure is the buffer, another might be a dirty flag.
1:55:09fittestbits__There may be additional information you'll want to keep there.
1:55:41fittestbits__Perhaps the last time the buffer is referenced ...
1:56:02fittestbits__Could be some debug related info ...
1:56:15ebrascaI am not sure how weak hashtables work.