Daily IT pill

Is there any tool i n Linux to dump the system memory?

Yes, you can grab Linux Memory Grabber from GitHub instead of trying to read directly to /dev/mem or develop yourself a program. Keep in mind that is impossible to read all RAM and not modify at least a tiny part of it while doing so.