Browse Source

2026-09-12 04:48:26

Signed-off-by: lizzie <lizzie@eden-emu.dev>
lizzie/fbsd-shm_create_largepage
lizzie 1 day ago
parent
commit
11639bbb64
  1. 4
      src/common/host_memory.cpp

4
src/common/host_memory.cpp

@ -541,9 +541,7 @@ public:
} }
} }
LOG_WARNING(Common_Memory, "using largepage of size {} #{}", max_size, max_index); LOG_WARNING(Common_Memory, "using largepage of size {} #{}", max_size, max_index);
// Do not use SHM_LARGEPAGE_ALLOC_HARD, yknow what will happen when you do?
// the entire Eden process will hang for eternity! that's what will happen
// Want to fuck around and find out? Go ahead, I tempt you change the "default" to "hard"
// Do not use SHM_LARGEPAGE_ALLOC_HARD, will infinitely hang on vm_reclaim on most systems
fd = shm_create_largepage(SHM_ANON, O_RDWR, max_index, SHM_LARGEPAGE_ALLOC_DEFAULT, 0600); fd = shm_create_largepage(SHM_ANON, O_RDWR, max_index, SHM_LARGEPAGE_ALLOC_DEFAULT, 0600);
} }
} }

Loading…
Cancel
Save