+++ title = "result<R, S>" weight = 20 +++
namespace outcome_v2_xxx
{
namespace policy
{
| #include <cstdint> | |
| #include <cstdio> | |
| #include <string_view> | |
| #include <system_error> | |
| #include <vector> | |
| #ifndef __linux__ | |
| #error "This is linux specific" | |
| #endif |
| #include <cassert> | |
| #include <chrono> | |
| #include <climits> | |
| #include <cstdint> | |
| #include <cstdio> | |
| #include <cstdlib> | |
| #include <cstring> | |
| #include <span> | |
| #include <vector> |
| # Ubuntu's zsysd creates snapshots within docker's zfs datasets, causing docker | |
| # to fail to destroy them, which then completely wrecks the correspondance | |
| # between zfs reality, docker's belief of zfs reality, and you are screwed. | |
| # These are the commands I used to completely reset docker on zfs so it | |
| # could be completely rebuilt. | |
| # First things first: get rid of all the autozsys snapshots | |
| service zsys stop | |
| zfs list -H -o name -t snapshot | grep autozsys | xargs -n1 zfs destroy |
| See attachment |
| --- | |
| timestamp: 2020-04-20 20:23:17 +0000 | |
| system: | |
| os: | |
| name: Microsoft Windows NT | |
| ver: 10.0.19041 | |
| cpu: | |
| name: GenuineIntel Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz | |
| architecture: x64 | |
| physical_cores: 4 |
| Running test latency:read:qd1:min ... | |
| latency:read:qd1:min = 176800 | |
| Running test latency:read:qd1:mean ... | |
| latency:read:qd1:mean = 235811 | |
| Running test latency:read:qd1:max ... | |
| latency:read:qd1:max = 9119200 | |
| Running test latency:read:qd1:50% ... | |
| latency:read:qd1:50% = 225700 | |
| Running test latency:read:qd1:95% ... | |
| latency:read:qd1:95% = 297000 |
Normal markdown code blocks with syntax highlighting:
template <class T> class foo;The harder way which permits inline hyperlinking:
template <class T> class foo;
Note the link and syntax highlighting!
| /* Demos the poor cached i/o performance on Windows | |
| Windows x64 with NTFS: | |
| memcpy: 91.7057ns per 1Kb | |
| Write: 1258.34ns per 1Kb | |
| Read: 1318ns per 1Kb | |
| Linux x64 with ext4: |
| cd boost-lite | |
| git checkout master | |
| git checkout include/revision.hpp | |
| git pull | |
| git submodule update --init | |
| mkdir -p build_posix | |
| cd build_posix | |
| cmake .. | |
| cd ../.. |