I'm using Ubuntu 32 BIT. - My app need to store incoming data at RAM (because I need to do a lot of searches on the incoming data and calc somthing). - I have a need to save the data for X seconds => So I need to allocate 12GB of memory. (client requirements) - I'm using Ubuntu 32 BIT (and dont want to to work with Ubuntu 64 BIT) - So I am using Ram Disk to save the incomming data and to searach on it. (So I can use 12GB of Ram on 32 BIT system)
when I test the app with 2GB of allocated memory (instead of 12GB) I saw that the performance of the CPU when using RAM is better than when using RAM DISK when I just write data into my DB (15% VS 17% CPU usage) but when I test the queries (which read a lot of data / or Files if I'm working with RAM disk) I saw a huge different (20% vs 80% CPU usage).
I dont understand why there is a huge of DIFF ? Both RAM and RAM DISK work on RAM ? no ? Is there anything I can do to get better performance ?