LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

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: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration