How to get total physical memory on the system thru program
Hi,
I have used kstat for identifying physical & virtual memory. I am able to get the data items of vminfo_t, but vminfo_t doesnot give the total physical memory all I get fro vminfo_t is
free memory, swap reserved, swap allocated, swap available and swap free.
Can someone help me in getting total physical memory of the system.
Thanks,
Ram
I do not believe you can get the physical number of pages through kstat. However, you can get it through sysconf(3C). The argument SCPHYS_PAGES will return the number of pages in the system.
See the sysconf(3C) manpage for more information.
Alan
Sun Developer Technical Support
http://www.sun.com/developers/support
Similar Messages
-
How to use "&Total physical pages" in the format trigger?
Hi all:
How should I to use the system variable "&Physical page number" and "&Total physical pages" in the format
trigger?
I can not use these 2 variables in the format trigger directly or i will reveive an error message.
Thank You!It may help you to know how I add JARs
1. I open my Project (myProject)
2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
3.1 I add the File to my Project
4. I select File | New -> Classes | Main
4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
4.2 I called some of the public methods
thats it
Andreas -
How to get total of ROW in the UDF defined in header
How would we calculate the TOTAL of a COLUMN at a ROW level and get it into UDF at Header level before saving.........
Please need the Query urgently..........
Ex There are 90 items entered into GRPO and now i need to calculate the total of BED, Cess, HeCess, VAT total to be displayed in UDF ie U_BEDTot, U_CessTot, HeCessTot, VAT created at Header Level.
Need the Query....Hi sanjay,
I can help u.
Use this query
IF @transaction_type = 'A' AND @Object_type = '20'
BEGIN
UPDATE OPDN SET
U_BEDTot = (SELECT SUM(taxsum) FROM PDN4 WHERE stacode = 'BED@16' and DOCENTRY = @list_of_cols_val_tab_del),
U_CessTot = (SELECT SUM(taxsum) FROM PDN4 WHERE stacode = 'eCess' and DOCENTRY = @list_of_cols_val_tab_del),
U_HeCessTot = (SELECT SUM(taxsum) FROM PDN4 WHERE stacode = '' and DOCENTRY = @list_of_cols_val_tab_del),
U_VAT = (SELECT SUM(taxsum) FROM PDN4 WHERE stacode = 'VAT4' and DOCENTRY = @list_of_cols_val_tab_del)
WHERE DOCENTRY = @list_of_cols_val_tab_del
END
Since SAP 2005B, it refer PDN4 and ur tax split up data are stored in it.
Create UDF in the title / header.
1. BEDTot
2. CessTot
3. HeCessTot
4. VAT
Thanks Suda.
Sanjay i hope it will help ful for you.
SAGAR -
How to get total available RAM
Hi
How to get total available RAM of the system. I used Runtime.getInstance().totalMemory(), it is not giving total memory of the system. I appreciate any help on this pl.
Thx
PKIf there would be any operating system command
displaying the desired result,
we could execute it as runtime command and parse the
output.
But I don't know if such a command exists.
I tried "mem", but it does not show the value I
expected.For windows XP the following command (either in the cmd window or executed by Runtime.exec) will provide the physical memory size.
systeminfo | find "Total Physical Memory"I don't know if it works in other Windows versions. -
How to get the size of physical memory by using system call ?
how to get the size of physical memory by using system call ?What system call can be used for me to get the size of physical memor? thanks.
%vmstat 3
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
0 0 0 3025816 994456 4 19 6 0 0 0 0 8 0 0 0 459 253 139 1 1 99
0 0 0 2864688 777408 0 2 0 0 0 0 0 3 0 0 0 428 134 175 0 1 99
0 0 0 2864688 777408 0 0 0 0 0 0 0 7 0 0 0 448 112 166 0 0 100
one interesting observation about vmstat I found out is (mostly on Solaris)
the first line of information always off chart, so I usually do a few interval to get constant result.
if you use linux
just
cat /proc/meminfo -
Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?
Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?
-
How to get physical memory by using system call ?
how to get physical memory by using system call ?What system call can I use.thanks
Use sysconf(3C) with SCPHYS_PAGES
-
How to get total in ALV report in same Internal table?
Data : Begin of it_data,
kunnr type kunnr,
name1 type name1,
amt1 type btrt01, " CURR 15,2
end of it_data.
loop at it_data into wa_data
endloop.
Hello friends,
I am developing one ALV report with 20 rows.
I have filled one internal table with some fileds like amount.
I want to get total of all amount1 in AMT1 field.
So, How to get total of amount in same internal table in ALV report ?
It is ok if i get duplicate rows in internal table.
Points 'll be awarded soon.
Regards,
NVMHi Ronny,
the alv output will display the sum at the last row.
for this functionality u have do this logic.
data: lw_fcat type slis_fieldcat_alv.
data: lt_fcat type slis_t_fieldcat_alv/
wa_fcat-fieldname = 'AMT1'.
wa_fcat-tabname = 'ITAB'.
wa_fcat-do_sum = 'X'.
append wa_fcat to lt_fcat.
and then pass it to reuse_alv_grid_display function,
regards,
Santosh Thorat -
How do I add more Memory to the 2 open slots in my iMac - it is 4GB now
How do I add more Memory to the 2 open slots in my iMac ??? It is 4GB now and I get the spinning beach ball often when several Apps are running.
Does the Apple Store sell and install???
Please advise if you have upgraded your iMac memoryGo to a website such as OWC or Crucial's, determine which type of RAM your computer needs, and buy it from that site. They provide installation instructions on the site.
(115474) -
I'm french, my white Ipod4g 16gb has been stolen 2 days ago, I would like to know how to get it back thanks to the serial number! please
You can't.
Change your iTunes (Apple ID) password along with any other password that was stored in the iPod. If any passwords are associated with credit cards, contact the CC company and get your card replaced (with a new number). If any passwords are associated with a bank or any other savings institution, contact them also and discuss approprate action with them.
The only real protection you have is with the personal information on the device rather than the physical device itself. This requires action before the device is lost/stolen. If the device has significant personal information, it should have a strong 8-digit (or longer) password AND be configured for automatic wipe in the event of ten consecutive incorrect password entries. -
How to get total of any field in sapscript?
Hello ,
i m making sapscript...
How to get total of any field in sapscript?Hi
Yes, you can define a variabe in your print program and pass it to the SAPScript.
LIKE:
Define L_SUM in the Global data.
DATA: L_SUM TYPE BSEG-DMBTR.
LOOP AT ITAB.
L_SUM = L_SUM + ITAB-AMOUNT.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
WINDOW = 'MAIN'
ELEMENT = 'TOTAL'.
Now, in your SAPScript, create a text element in MAIN window
/E TOTAL
Total,, &L_SUM&.
Go through below link
http://sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm
Regards,
Chandru -
How to get total at each hierarchy
Hello Gurus,
Does anybody know how to get total at each level.
I mean, if I have the following structure...
Level 1
Level 2
Level 3
Level 4
Level 5
At level 5 we have the following calculation
Volume Price Amount(From Formula Volume * price)
5 2 10,00
6 3 12,00
7 4 28,00
My question is how to get a sum of (10,00 + 12,00 +28,00 = 50,00) at level 4?
Thanks in advance.
With regards,
AnandDoes anybody know how to get total at each level.
I mean, if I have the following structure...
Level 1
Level 2
Level 3
Level 4
Level 5
At level 5 we have the following calculation
Volume Price Amount(From Formula Volume * price)
5 2 10,00
6 3 12,00
7 4 28,00
I am getting following results : It is adding volume and price then multiplying volume * price and giving results.
18 9 18 * 9 = 162,00
But I have to get sum of ( 10,00 + 12,00 +28,00 = 50,00) at level 4.
My question is how to get a sum of (10,00 + 12,00 +28,00 = 50,00) at level 4?
Thanks.
With regards,
Anand -
Anybody know how to get a macbook to read the 4gb it is supposed to be expandable to
anybody know how to get a macbook to read the 4gb it is supposed to be expandable to
Providing more info as to exactly which model Mac you have and which type of memory modules you acquired will help us diagnose the problem better.
-
Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar
The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
Thus, if you get it to work restore to factory settings/new iPod, not from backup
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
I just need to know how you get an iTunes library off the original hard drive of an imac and onto an external hard drive and still have it work as it normally would?
http://support.apple.com/kb/HT1449
Maybe you are looking for
-
Having just had a upgrade to BTHub3 and subsequentlly upgraded to a new HD ready tv I was surprised to be told by the installers that (and now it gets technical} that the BTHub3 had an "1080i HD interface and was only classed as HD Ready. To be a ful
-
[iPhone] Can't get app to deploy to device
I followed these instructions: http://developer.apple.com/iphone/manage/provisioningprofiles/howto.action But when I deploy I get the wonderful "Your mobile device has encountered an unexpected error (0xE800003A) during the install phase: Verifying a
-
Extracting Audio program shuts down
I am trying to extract the audio from a video clip in iMovie HD 5.0.2. I have only had problems with this since purchasing this computer. My previous iMac with OS 10.3 had no problem with audio extraction. Any suggestions? Thanx! iMac G5 20'' Mac O
-
When we start essbase we recive Native Directory is not reachable.
Hi All, While i start essbase i get the below error. [Wed Apr 29 17:57:29 2009]Local/ESSBASE0///Info(1051283) Retrieving License Information Please Wait... [Wed Apr 29 17:57:29 2009]Local/ESSBASE0///Info(1051286) License information retrieved. [Wed A
-
Suppress Page eject control character...
Hello, While generating a report in text mode, Report Builder adds a page eject control character(i.e. ctrl-l) at the end of report. We don't want this control character. So how can this be removed ? We are using Reports 6i. Thanks Kiran.