I have a process that inserts 10 million records into a mysql db and is running on a linux box with (4 * 2.13GHz processors + 4 gigs of Memory ). Right now it takes ~2 hours to complete and I'm not sure if the process utilizes all the processors. Using top I increased the priority ( reniced to -20) and the running time was down to 20 minutes.
I'd like to make the process utilize all the processors and'd like to know what tool I can use to look it up ?
Is there any other way I can throw more cpu/memory to the running process and increase execution speed ?