VM size on solaris compared to NT
Can anybody explain why the VM size on solaris is so much bigger than on NT.
E.g a "Hello World !" program on solaris is 28 MB compared to 3 MB on NT.
the -xms param == 4 for both executions.
Any answers will be appreciated ???
Don't trust "ps" or "top" output on some Unixes.
Often, what happens is that a process will mmap() a very large chunk of memory. However, the system doesn't commit virtual memory to that process until it touches any given page (i.e. "real" swap space is reserved for a page only when that page is first touched).
This allows several processes to allocate large chunks of virtual memory without running out of swap space prematurely (but of course, if all of them do proceed to touch every page of that memory, one of the processes will be killed.
I just tried a small hello world, and while the "VM size" is apparently 28M, the resident size is only 8.5M (which is still rather big, I'll grant you :-).
Similar Messages
-
How to increase file size on solaris 10 from 2g
HI All,
how can i increase the file size on solaris 10 from 2gb .
please reply complete steps.
or any helpful tutorials
thanksfiles (log files ) are being created by application and max size for the files is "2147483647" and that restriction i cant get complete logs so how can i increase the file size ?
Q) What filesystem are you using?
A) UFS
Q) What Kernel release are you using? (uname -a)
A) SunOS ss00 5.10 Generic_120012-14 i86pc i386 i86pc
Q) What system are you running Solaris on? (prtdiag -v | head)
A) System Configuration: Sun Microsystems Sun Fire V20z
BIOS Configuration: Phoenix Technologies Ltd. V1.34.4.2 08/24/2005
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)
==== Processor Sockets ====================================
Version Location Tag
AMD CPU0-Socket 940
AMD CPU1-Socket 940
Q) Are you running a 32-bit or 64-bit Kernel? (isainfo -v)
A) 64-bit amd64 applications
sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc
fpu
32-bit i386 applications
sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc
fpu
Q) How is the file being modified or created?
A) files are being created by application
Can you create a 3GB file using mkfile(1M) - # mkfile 3g 3gfile
A) 3221225472 Jun 8 05:31 3gfile yes file was created successfully -
Knowing the Total Swap size in solaris
Dear all
can anyone help me finding out Total Swap size(constant) value in solaris 10
I tried swap -s and used (Used+available as TOTAL swap)
its keep changing, as its is a current swap size at that time.
actually My intention is to used this forumula in the script,as I found that solaris uses memory as physical+SWAP
(Physcial Memory +swap size)
Total physical+Total swap
what is the best way to find out Actual Total Swap size in solaris ??I tried swap -s and used (Used+available as TOTAL swap)
its keep changing, as its is a current swap size at that time.
That's to be expected. See "How does Solaris Operating System calculate available swap? (Doc ID 1010585.1)"
actually My intention is to used this forumula in the script,as I found that solaris uses memory as physical+SWAP
(Physcial Memory +swap size)
Total physical+Total swap
what is the best way to find out Actual Total Swap size in solaris ??
If you want to know the size of the swap device, then look at the device(s) being used for swap and check the size of the slice or zvol. That'll tell you the starting value. The available will fluctuate with system usage. See Doc ID 1010585.1
What exactly are you trying to achieve with your script? -
How does Solaris compare to other OS's?
Hello,
I am looking to install another operating system on my computer in addition to windows. I have heard many good things about other O/S's and I am curious as to how Solaris compares to the various UNIX and Linux distributions and what kinds of programs are available for Solaris. Thank you.Just get "http://www.vmware.com/products/free_virtualization.html" (VMWare server) from their 'free virtualisation' section. After you installed it simply download and install Solaris in your new virtual machine. That way you get to keep Windows while still being able to try other OS's.
-
Max UFS filesystems size for Solaris 2.X
What are the max limits on UFS filesystem sizes for Solaris 2.6, 8 and 9?
ThanksIt's called a "search". ;) SunSolve Info Doc 76856.
Solaris 2.6 - 8 -- 1 TB limit
Solaris 9 and higher - 16 TB limit
Individual files, however, can only be about 1,012 GB. -
I have some confusion about disk subsystem in Solaris, i am trying to clarify from this forum.
I have recently installed Solaris 10 in one SPARC box. After i installed, the format gives the bellow output.
0 root wm 19491 - 29648 4.88GB (10158/0/0) 10239264
1 swap wu 0 - 4062 1.95GB (4063/0/0) 4095504
2 backup wm 0 - 29648 14.25GB (29649/0/0) 29886192
From the above output, is the size of my disk is 14 GB ?, or the size of my disk is 14+2+5=21 GB ?
I am trying to learn ZFS, so i want another partition in this disk so that i create ZFS on that partition.
I have gone to single user mode by using CD. I assumed that, from the above "format" command output, i thought i have 21GB of disk size and 14GB of free space. So i created another partition with 14GB. Now the format command gives bellow output.
0 root wm 19491 - 29648 4.88GB (10158/0/0) 10239264
1 swap wu 0 - 4062 1.95GB (4063/0/0) 4095504
2 backup wm 0 - 29648 14.25GB (29649/0/0) 29886192
3 reserved wm 0 - 29127 14.00GB (29128/0/0) 29361024
When i am creating ZFS, it given me a warning that the the partition i have specified is spanned into root partition (first partition), and it mentioned to use "-f" option.
With "-f", it created successfully.
If i assume now that the size of my disk is 14GB only then,
(1) how come two partitions are pointing to the same area in the disk ?
(2) How come two different filesystems are pointing to the same area ?
Please anyone clarify my doubts. Thank you.Assuming a standard labeled disk it is standrad practice to have section/slice 2 being 'whole disk' for purposes of 'backup'. That would tend to indicate you have a 14GB disk. A prtvtoc /dev/dsk/c?t?d?s2 (change the ?s to the right values) will give a little more on the disk geometry.
In the display from format column 4 is the start cylinder of the partition and column 5 is the end cylinder. From the first set out output it looks like cyclinders 4063 to 19490 are not allocated
In the second set you have created a new slice (section 3) that overlaps both sections 0 and 1 - which is generally considered to be bad! -
I am trying (and failing) to utilize large page sizes on a Solaris 9 machine.
# uname -a
SunOS machinename.lucent.com 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Blade-1000
I am using as my reference "Supporting Multiple Page Sizes in the Solaris� Operating System" http://www.sun.com/blueprints/0304/817-6242.pdf
and
"Taming Your Emu to Improve Application Performance (February 2004)"
http://www.sun.com/blueprints/0204/817-5489.pdf
The machine claims it supports 4M page sizes:
# pagesize -a
8192
65536
524288
4194304
I've written a very simple program:
main()
int sz = 10*1024*1024;
int x = (int)malloc(sz);
print_info((void**)&x, 1);
while (1) {
int i = 0;
while (i < (sz/sizeof(int))) {
x[i++]++;
I run it specifying a 4M heap size:
# ppgsz -o heap=4M ./malloc_and_sleep
address 0x21260 is backed by physical page 0x300f5260 of size 8192
pmap also shows it has an 8K page:
pmap -sx `pgrep malloc` | more
10394: ./malloc_and_sleep
Address Kbytes RSS Anon Locked Pgsz Mode Mapped File
00010000 8 8 - - 8K r-x-- malloc_and_sleep
00020000 8 8 8 - 8K rwx-- malloc_and_sleep
00022000 3960 3960 3960 - 8K rwx-- [ heap ]
00400000 6288 6288 6288 - 8K rwx-- [ heap ]
(The last 2 lines above show about 10M of heap, with a pgsz of 8K.)
I'm running this as root.
In addition to the ppgsz approach, I have also tried using memcntl and mmap'ing ANON memory (and others). Memcntl gives an error for 2MB page sizes, but reports success with a 4MB page size - but still, pmap reports the memcntl'd memory as using an 8K page size.
Here's the output from sysinfo:
General Information
Host Name is machinename.lucent.com
Host Aliases is loghost
Host Address(es) is xxxxxxxx
Host ID is xxxxxxxxx
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
Manufacturer is Sun (Sun Microsystems)
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
System Model is Blade 1000
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
ROM Version is OBP 4.10.11 2003/09/25 11:53
Number of CPUs is 2
CPU Type is sparc
App Architecture is sparc
Kernel Architecture is sun4u
OS Name is SunOS
OS Version is 5.9
Kernel Version is SunOS Release 5.9 Version Generic_112233-11 [UNIX(R) System V Release 4.0]
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
Kernel Information
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
SysConf Information
Max combined size of argv[] and envp[] is 1048320
Max processes allowed to any UID is 29995
Clock ticks per second is 100
Max simultaneous groups per user is 16
Max open files per process is 256
System memory page size is 8192
Job control supported is TRUE
Savid ids (seteuid()) supported is TRUE
Version of POSIX.1 standard supported is 199506
Version of the X/Open standard supported is 3
Max log name is 8
Max password length is 8
Number of processors (CPUs) configured is 2
Number of processors (CPUs) online is 2
Total number of pages of physical memory is 262144
Number of pages of physical memory not currently in use is 4368
Max number of I/O operations in single list I/O call is 4096
Max amount a process can decrease its async I/O priority level is 0
Max number of timer expiration overruns is 2147483647
Max number of open message queue descriptors per process is 32
Max number of message priorities supported is 32
Max number of realtime signals is 8
Max number of semaphores per process is 2147483647
Max value a semaphore may have is 2147483647
Max number of queued signals per process is 32
Max number of timers per process is 32
Supports asyncronous I/O is TRUE
Supports File Synchronization is TRUE
Supports memory mapped files is TRUE
Supports process memory locking is TRUE
Supports range memory locking is TRUE
Supports memory protection is TRUE
Supports message passing is TRUE
Supports process scheduling is TRUE
Supports realtime signals is TRUE
Supports semaphores is TRUE
Supports shared memory objects is TRUE
Supports syncronized I/O is TRUE
Supports timers is TRUE
/opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
Device Information
SUNW,Sun-Blade-1000
cpu0 is a "900 MHz SUNW,UltraSPARC-III+" CPU
cpu1 is a "900 MHz SUNW,UltraSPARC-III+" CPU
Does anyone have any idea as to what the problem might be?
Thanks in advance.
MikeI ran your program on Solaris 10 (yet to be released) and it works.
Address Kbytes RSS Anon Locked Pgsz Mode Mapped File
00010000 8 8 - - 8K r-x-- mm
00020000 8 8 8 - 8K rwx-- mm
00022000 3960 3960 3960 - 8K rwx-- [ heap ]
00400000 8192 8192 8192 - 4M rwx-- [ heap ]
I think you don't this patch for Solaris 9
i386 114433-03
sparc 113471-04
Let me know if you encounter problem even after installing this patch.
Saurabh Mishra -
Re-read disk size in Solaris 10 x86 / VMware
Hi
Using
# uname -a
SunOS host1 5.10 Generic_142910-17 i86pc i386 i86pc
We have a 30G virtual disk, on top of which a UFS filesystem is living, mounted, and used.
The Virtual disk has been resized to 40G.
I know I need to change the fdisk partition size, after which i can change the "format" partition size, then use growfs.
But I don't know how to get S10 to recognise the new size for the disk.
fdisk tells me
Total disk size is 3916 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status
Type
Start End Length
========= ======
============ ===== === ====== ===
1
Active
Solaris2
1 3915
3915
100
# prtvtoc -h /dev/dsk/c1t2d0s2
0 0 00 16065 62846280 62862344 /xxx
2 5 01 0 62862345 62862344
8 1 01 0 16065 16064
# df -h /xxx
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t2d0s0 30G 29G 498M 99% /xxx
On Linux I might use partprobe or blockdev --rereadpt but on Solaris?
Cheers
KMHello
this document should help, but make a backkup before running it
How to expand a UFS Lun in Solaris 10 (Doc ID 1451858.1)
Regards
Eze -
How to increase disk size in solaris
Hi all
I have two disk c1t0d0s0 / c1t0d0s7
I do haven't space in disk /dev/dsk/c1t0d0s0
run df -h
/dev/dsk/*c1t0d0s0* 8,8G 7,4G 1,3G 86% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 3,4G 984K 3,4G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
8,8G 7,4G 1,3G 86% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 3,4G 72K 3,4G 1% /tmp
swap 3,4G 40K 3,4G 1% /var/run
/dev/dsk/*c1t0d0s7* 20G 21M 20G 1% /export/home
I want increasing the space in c1t0d0s0. when I installed Solaris 10 I do not looked attentively the size allocated
ThanksHi,
As I understand, you want to increase the size of the root partition (where you installed Solaris) which resides in c1t0d0s0. I think it can be done using Concatenations from Solaris Volume Manager (SVM).
I have tried it in non root partition like /export/home and it is very easy.
metainit -f d0 2 1 c1t0d0s7 1 c2t0d0s7 //this will create volume d0 as a concatenation
growfs -M /export/home /dev/md/rdsk/d0 //this will grow the /export/home partition
Regards,
Rei -
Maximum Core File Size for Solaris 8
I believe that RLM_INFINITY for Solaris for core file sizes comes to 2GB.
Is there any mechanism ( patch ) etc. by which this can be increasd ?if your application is 32-bit, then the core file size would be limited to 4GB (by default) and if your application is
64-bit, then the core file size would be limited to usigned long max (by default).
-Saurabh -
Download size of Solaris 10 x86 DVD ?
Hi !
The last time I was here to download Sun Solaris 10, I was set back by the size of the download/time for that.
If I do remember correctly it had 2 main image files each over 1 GB and 2 other add on files, summing over 4 GB.
At that time I didn't had that much of bandwidth and also time.
But now I see only 1 file (sol-10-u5-ga-x86-dvd.iso) of 2+ GB size.
Am I downloading the full image file for x86 architecture ?
I wanna download the complete image file as I'll use it for local intranet machine having no internet connection.
Thanks In Advance !My 10u5 is is 2259353600 bytes.
-
Re-arranging the filesystem sizes in Solaris 10.
Hi,
I have done a fresh install of a machine using the CDs. I would like increase many of the file system sizes including the root filesystem.
It is very easy in HP UX using the utility Ignite UX.
In Solaris, do we have any way to do a system backup and while restoring have a different filesystem sizes.
I have heard about flar not sure we can use that images for the above activity.
If you know or done this earlier let me know the steps you have done.
ThanksFound on this form the answer:
http://forums.sun.com/thread.jspa?forumID=761&threadID=5053865
My mistake was I renamed the file /var/sadm/install/productregistry...this has to be moved or removed.
Thanks. -
I have applied the Recommended Patch Cluster to my Solaris 8 (6/00) Ultra 10 System, but Format still sees only 30G off my 100G IDE Slave Device. Pls let me know if there are any other patches to apply for the full HD size to be seen.
thanks
Jayhello, I will check the Jumper Settings, which I think is set as slave. But have no idea how to do the delete vtoc and re-label. Can you please provide the instructions for these?
thanks
Jay -
BerkeleyDB cache size and Solaris
I am having problems trying to scale up an application that uses BerkelyDB-4.4.20 on Sun Sparc servers running Solaris 8 and 9.
The application has 11 primary databases and 7 secondary databases.
In different instances of the application, the size of the largest pimary database
ranges only from 2MB to 10MB, but those will grow rapidly over the
course of the semester.
The servers have 4-8 GB of RAM and 12-20 GBytes of swap.
Succinctly, when the primary databases are small, the application runs as expected.
But as the primary databases grow, the following, counterintuitive phenomenon
occurs. With modest cache sizes, the application starts up, but throws
std::exceptions of "not enough space" when it attempts to delete records
via a cursor. The application also crashes randomly returning
RUN_RECOVERY. But when the cache size is increased, the application
will not even start up; instead, it fails and throws std::exceptions which say there
is insufficient space to open the primary databases.
Here is some data from a server that has 4GB RAM with 2.8 GBytes free
(according to "top") when the data was collected:
DB_CONFIG............db_stat -m.................................Result
set_cachesize........Pool......Ind. Cache
0 67108864 1.........80 MB.......8 KB................Starts but crashes and can't delete by
.....................................................................cursor because of insufficient space
0 134217728 1.......160 MB......8 KB.................Same as case above
0 268435456 1........320 MB.....8 KB.................Doesn't start and says there is
......................................................................not enough space to open a primary
......................................................................database.
0 536870912 1.........512 MB...16 KB.................Doesn't start and says there is
......................................................................not enough space to open a primary
......................................................................database (although it mentions a
......................................................................different primary database than before.
1 073741884 1........1GB 70MB....36 KB............Doesn't start and says there is
......................................................................not enough space to open a primary
......................................................................database (although it mentions a
......................................................................different pimary database than
......................................................................previously).
2 147483648 1.........2GB 140MB...672 KB........Doesn't start and says there is
......................................................................not enough space to open a primary
......................................................................database (although it mentions a
......................................................................different pimary database than
......................................................................previously).
I should also mention that the application is written in Perl and uses
the Sleepycat::Db Perl module to interface with the BerkeleyDB C++ API.
Any help on how to interpret this data and, if the problem is the
interface with Solaris, how to tweak that, will be greatly appreciated.
Sincerely,
Bill Wheeler, Department of Mathematics, Indiana University, Bloomington.Having found answers to my questions, I think I should document them here.
1. On the matter of the error message "not enough space", this message
apparently orginates from Solaris. When a process (e.g., an Apache child)
requests additional (virtual) memory (via either brk or mmap) such that the
total (virtual) memory allocated to the process would exceed the system limit
(set by the setrlimit command), then the Solaris kernel rejects the request
and returns the error ENOMEM . Somewhat cryptically, the text for this error
is "not enough space" (in contrast, for instance, to "not enough virtual
memory").
Apparently, when the BerkeleyDB cache size is set too large, a process
(e.g., an Apache child) that attempts to open the environment and databases
may request a total memory allocation that exceeds the system limit.
Then Solaris will reject the request and return the ENOMEM error.
Within Solaris, the only solutions are apparently
(i) to decrease the cache size or
(ii) to increase the system limit via the setrlimit command.
2. On the matter of the DB_RUNRECOVERY errors, the cause appears
to have been the use of the DB_TXN_NOWAIT flag in combination with
code that was mishandling some of the resulting, complex situations.
Sincerely,
Bill Wheeler -
What does 'Save as Reduced size PDF' do compared to 'Save as Optimised PDF'?
(Acrobat X Pro)
So, both "Save as > Reduced size PDF" and "Save as > Optimised PDF" allow you to reduce the file size of a PDF. "Optimise" offers a variety of options, "Reduce" just gets on with it.
What is the difference between what they actually do under the hood? Does "Reduce" essentially run the "Optimise" process with certain default settings? Or is it a wholly different process?
What effect does "Reduce" have in terms of what elements of the PDF are compressed and removed?
In my experience, "Reduce" seems to be less prone to crashing, and often does as good a job as "optimise". It preserves things like hyperlinks, which optimise may or may not do depending on settings. I'd like to know more about what is actually happening under the hood so I can better judge which is the best tool under what circumstances.Personally, I always recommend using Optimize over Reduce Size.
There are no settings to choose from in Reduce Size. In Optimize you can choose Audit Space Usage so you can get some idea of where the size is coming from. In Optimize you can save settings so you can use them again.
I have never had a crash from using Optimize on my Mac computers.
Maybe you are looking for
-
Hi, In my example I want to get all the rows of the table. The table has 20 rows. The visibleRowCount is set to 7 and firstVisibleRow is set to 3. I have created the table as var oTable = new sap.ui.table.Table({ id: "oTable
-
In Admin log file , i get an error "The administration server was unable to establish JMS connectivity with the managedserver at the JMX service URL of serviceURL" The managed server state are unknown. how do i fix this to control my managed server t
-
Billing plan in Contract.
Hi Gurus, I wanna set the billing plan at item level in contracts. I have done the necessary settings and now billing plan is showing at item level. But, its happening that when I try to put values in billing plan for the contracts which are already
-
Migrating Site Studio pages to 11g
We are in the middle of an upgrade from 10gR3 to 11g, and I am trying to get our Site Studio sites working in the new environment. The Sites were originally developed in 751 and migrated up to 10gR3 in 2009. The problem is that many of the pages are
-
Hi, I am thinking about making the switch to FIOS from TWC (I received a great triple play offer in the mail), but my only real concern is I currently use Vonage for my phone service and I am really happy with them. If I switch to FIOS from TWC, are