From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa4f9,5e3996adbde403ea X-Google-Attributes: gidfa4f9,public X-Google-Thread: fee84,5e3996adbde403ea X-Google-Attributes: gidfee84,public From: Joerg Bruehe Subject: Re: Datafile buffering w/ OSF1 Date: 2000/05/09 Message-ID: <3917D494.9BD32895@sql.de>#1/1 X-Deja-AN: 621059132 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@news.sql.de X-Trace: news.sql.de 957863060 21423 194.64.230.128 (9 May 2000 09:04:20 GMT) Organization: SQL Datenbanksysteme GmbH Mime-Version: 1.0 NNTP-Posting-Date: 9 May 2000 09:04:20 GMT Newsgroups: comp.databases.oracle.server,comp.unix.osf.osf1 Hi Antti ! Antti Jarvinen wrote: > > I'm having a slight swapping problem with digital unix 4.0 and oracle804: > [ vmstat shows high swapping ] > ... > and almost all processes (including ora*) are regularly swapped out and in > causing pretty ugly slowdown. > > I'm thinking this might be a file system buffering problem. Our application > for most part does things periodically: there are processes that do things, > then go to sleep() for some time, wake up and begin stressing the DB again. > Every wakeup seems to cause swapping. Because this application does not use > files, database is the storage for all necessary stuff then I'm not sure where > the file access are coming from and therefore: > > - does 8.0.4.3.0 on 4.0d open datafiles in such a mode that the filesystem > does not cache the datafile contents again? > > As this uses datafiles in AdvFS-disks, no raw partitions are used. > > [...] I have no special Oracle experience, but I never understood why their preference is to use files for their "tablespaces". IMHO, this will _always_ cause double cacheing (in the Oracle RAM structure plus in the Unix file I/O buffer pool) and so cause problems like you describe. With our Adabas D, we always recommend using raw partitions (for this and other reasons, one being that file I/O takes more CPU than raw disk I/O in the DBMS case). Regards, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: joerg@sql.de