LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Segmentation fault (http://www.linuxquestions.org/questions/solaris-opensolaris-20/segmentation-fault-4175444185/)

nap-ster 01-04-2013 01:32 PM

Segmentation fault
 
Hey guys
iam executing command prtconf |grep Mem but it shows segmentation fault.... how to over come this... i want to know memory size.....

jlliagre 01-04-2013 02:57 PM

Quote:

Originally Posted by nap-ster (Post 4863057)
Hey guys
iam executing command prtconf |grep Mem but it shows segmentation fault....

If you want to investigate the crash cause, start by running:
Code:

truss -f prtconf 2>&1 | tail -20
and post the output.
Quote:

i want to know memory size.....
For that part, here is an alternative:
Code:

echo $(( $(kstat unix::system_pages:physmem|nawk 'NR==3 {print $2}') * $(pagesize) / 1024 / 1024 )) MB


All times are GMT -5. The time now is 08:13 AM.