Hi all.
I'm in process of porting code from Windows to Sun solaris and we faced the problem of execution time.... Program works very slow on SUN workstation comparing to PC. I investigated runtime internals of the program and found out that the amount of available physical memory becomes very low (~ 7MB out of 512MB) -- I use sysconf to determine this amount. (On PC we never needed more than 100 -150MB RAM)
I think that system begins using swap, and I would like to avoid using it...
The questions are :
1. Is there any way to determine the size of memory that can be allocated (malloc) at some time without using a hard drive (swap) ?
2. Is there a utility that shows current using of swap by a process ?
3. Can I configure system/program/process to notify me in case of using swap (or not to use swap at all and get error "not enough memory" or something) ?
I'm new to unix and could not find a good documentation on solaris so far..
Thank you,
Pavel.
I'm in process of porting code from Windows to Sun solaris and we faced the problem of execution time.... Program works very slow on SUN workstation comparing to PC. I investigated runtime internals of the program and found out that the amount of available physical memory becomes very low (~ 7MB out of 512MB) -- I use sysconf to determine this amount. (On PC we never needed more than 100 -150MB RAM)
I think that system begins using swap, and I would like to avoid using it...
The questions are :
1. Is there any way to determine the size of memory that can be allocated (malloc) at some time without using a hard drive (swap) ?
2. Is there a utility that shows current using of swap by a process ?
3. Can I configure system/program/process to notify me in case of using swap (or not to use swap at all and get error "not enough memory" or something) ?
I'm new to unix and could not find a good documentation on solaris so far..
Thank you,
Pavel.