opencomputeproject / oom

MIT License
66 stars 29 forks source link

oom_get_memory reads the whole page, for every page of dynamic data - optimize! #8

Open donboll opened 6 years ago

donboll commented 6 years ago

oom_get_memory(port, 'DOM') needs to read 10 bytes (SFP) or 36 bytes (QSFP), but it always reads 128 bytes to fill the page cache. Try to optimize this. It should be at least twice as fast on QSFP, four times faster on SFP.