LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 01-04-2013, 01:32 PM   #1
nap-ster
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
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
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:
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
 
  


Reply


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/Novell 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 08:21 PM.

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