Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.


  Search this Thread
Old 01-04-2013, 01:32 PM   #1
LQ Newbie
Registered: Jun 2012
Posts: 11

Rep: Reputation: Disabled
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.....
Old 01-04-2013, 02:57 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,570

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Originally Posted by nap-ster View Post
Hey guys
iam executing command prtconf |grep Mem but it shows segmentation fault....
If you want to investigate the crash cause, start by running:
truss -f prtconf 2>&1 | tail -20
and post the output.
i want to know memory size.....
For that part, here is an alternative:
echo $(( $(kstat unix::system_pages:physmem|nawk 'NR==3 {print $2}') * $(pagesize) / 1024 / 1024 )) MB


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
segmentation fault anshumansingh Linux - Newbie 3 11-30-2008 12:34 AM
segmentation fault..... sumitshining Programming 9 11-10-2008 02:48 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault??? max_rsr Programming 2 04-15-2005 08:47 PM
segmentation fault pippet Programming 4 01-24-2005 01:02 AM

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration