.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
smon 4030 - quick ideas?

smon 4030 - quick ideas?

2006-06-03       - By Tanel Poder
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

In addition, recent Oracle versions haven't used malloc() for their memory
allocations for a while anyway.

Oracle uses realfree heap management by default in 10g. In 9.2 only if
pga_aggregate_target is set or _use_realfree_heap = true.

This means that mmap() instruction is used for memory allocation - giving
the benefit to allocate and deallocate memory to/from any virtual memory
range. Malloc which uses brk system call just changes the single process
data segment size to larger or smaller - not allowing very flexible memory
management (remember that Oracle used not to release any memory back to OS
at all).

Now with realfree memory management and mmap()/munmap() system calls this
has changed. UGA and CGA heaps are lifted out of PGA heap, thus they can be
completely released back to OS if needed.

Usually mmap() is used to map executable files and libraries to process
address space for using system memory more efficiently, so how can one just
allocate blank scratch memory using mmap()? The cool trick here is that
Oracle maps /dev/zero into it's address space to get some memory and as
/dev/zero is an endless file, you can allocate any amount of memory you like
(as long as other restrictions such address space length and usage permit).

A last year's post on the topic, which should still be mostly accurate:
http://www.freelists.org/archives/oracle-l/05-2005/msg00445.html

Tanel.

-- --Original Message-- --
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]
On Behalf Of Kevin Closson
Sent: 03 June 2006 13:11
To: oracle-l@(protected)
Subject: RE: smon 4030 - quick ideas?


  /* 4030 prog */
  int main (int argc, char**argv) {
   char * buff;
   int mbCount = 0;
   while (1) {

[code deleted]

 Sorry. This program will not determine Oracle process heap allocation
capability any more accurately than would a  3-legged pink elephant. sorry.
The address space of an Oracle process has, um, a few more things in it.

 On the brighter side of things, you could Open Source this program and get
the venture capital folks all excited.
--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l