I am getting memory related error when I try to split a big file into 8GB files.
# split -C 8000000000 r_mini_20120503.txt
split: memory exhausted
I am however able to create 4GB files using the same command. Is there any way to increase memory for this purpose?
Maybe
split
is the somewhat wrong tool for this task. You can try it withdd
(untested):As I wrote, untested.
I'd say you're trying to use more memory than is on your system.
You could have a go at doing this in Single User mode, so there's less services, and other stuff (like X and GDM) running.
To do that, run
telinit 1
OR.. Install more RAM. It's cheap.
How much RAM is in your box? You could add some more swap to your system for the time being, but that's going to be dog slow :P