Booting with a Ubuntu 16.04 live disk and editing the etc/security/limits.conf and changing both soft and hard memlock to "unlimited" let me boot.
Ran XMR-STAK-CPU and it still would error out with "**Error: MEMORY ALLOC FAILED: mmap failed**"
So I changed hugepages=128, 128 is what is shown in the readme, to hugepages=256 and that fixed it.
Results:
AMD FX 8320 at 4.4 GHz
XMR-STAK-CPU: only max listed, after a few minutes it would settle on a slightly lower hash rate.
8 threads= 305 H/s
7 threads= 435 H/s
6 threads= 329 H/s
5 threads= 324 H/s
4 threads= 219 H/s
3 threads= 217 H/s
2 threads= 111 H/s
1 thread = 107 H/s
The 8 core FX cpu's have a 8MB L3 cache AND each module pair has 2MB of L2 cache so the cpu has a total of 16 MB of cache.
Looks like the sweet spot is 7 threads but it sure puts out the heat when 7 threads are cranking, I may lower the overclock depending on how hot the cpu gets after running it a while.
EDIT: Ran 7 threads for five minutes and the cpu temp was 56c and it settled down to 425H/s, I think max is 62c so I might downclock it a little and lower the vcore voltage. Fans on the radiator are LOUD!! LOL
EDIT2: Lowered it to 4.2 GHz from 4.4 GHz and voltage to 1.35 v from 1.38v and lowered the voltage offset to .050mv from .10.
Now at 4.2 GHz with 7 threads running with XMR-STAK-CPU :
7 threads = 413 H/s
Cpu temp is 45.2c and fans are much MUCH quieter so thats a good compromise only about ~12-13 H/s slower but much quieter.
So i'm going to fire up XMR-STAK-NVIDIA and see what happens.
EDIT3: I am really impressed with the FX8320 cpu and the FX 8 cores should get CHEAP after all the Ryzen cpu's are out.
Looks like with both the cpu and gpu working the cpu temps are up a bit so I might lower the overclock a little more.