Operating System - HP-UX
1825795 Members
2385 Online
109687 Solutions
New Discussion

Logical and phisical queue ....

 
SOLVED
Go to solution
Manuales
Super Advisor

Logical and phisical queue ....

Hi all !!!

:0)

Can you explain me what is a logical and a
phisical queue?

thanks, Manuales.
13 REPLIES 13
Fabio Ettore
Honored Contributor
Solution

Re: Logical and phisical queue ....

Hi Manuales,

sorry, can you explain better your question?

Thanks and regards,
Fabio
WISH? IMPROVEMENT!
Pete Randall
Outstanding Contributor

Re: Logical and phisical queue ....

If you are referring to I/O queueing, a logical queue is buffered in RAM, while physical is written directly to the disk.


Pete

Pete
Manuales
Super Advisor

Re: Logical and phisical queue ....

Thanks Pete ..
exactly .. what is a queue?
could be a message?

I have listened about queues' Tuxedo for example ...


exactly .. what is a queue?

what kind of queues does exist?

Thanks ...
Manuales
Super Advisor

Re: Logical and phisical queue ....

Thanks Pete ..
exactly .. what is a queue?
could be a message?

I have listened about queues' Tuxedo for example ...


exactly .. what is a queue?

what kind of queues does exist?

Can you give me examples about physical and logicals queues?

Thanks ...
A. Clay Stephenson
Acclaimed Contributor

Re: Logical and phisical queue ....

A queue is simply a group of things lined up sequentially waiting to be serviced. A queue might be a line of people at a store waiting to pay for their purchases. It could also be a number of i/o requests waiting to be serviced. Normally a disk i/o request in UNIX is serviced in a two-phase manner: 1) First the buffer cache is examined to see if the data are already there (logical i/o) 2) Next, a physical i/o is done to access the data --- and usually also copies this data to the buffer cache so that subsequents requests can be satisfied as a logical request.

A message queue is an IPCS (Inter-Process Communication System) facility that allows a group of processes to communicate with each other. One process pushes a message on the queue and another process pops the message. IPCS message queues might not be serviced in the order that they were pushed on the queue because there is also a priority associated with each message.
If it ain't broke, I can fix that.
Manuales
Super Advisor

Re: Logical and phisical queue ....

can you tell me what is the buffer cache?

what is its function?

Thanks, Manuales. ...
Manuales
Super Advisor

Re: Logical and phisical queue ....

and ...

what is i/o ?

Manuales.
Pete Randall
Outstanding Contributor

Re: Logical and phisical queue ....

The buffer cache is a portion or memory set aside for I/O requests to be queued into in order to speed up access. Disks being relatively slow, the theory is that you can read relatively large amounts of data into memory and then satisfy I/O request out of the much quicker memory.


Pete

Pete
Manuales
Super Advisor

Re: Logical and phisical queue ....

thanks ..
and that portion of memory is internal or external, is physics memory or RAM?

Manuela.
Pete Randall
Outstanding Contributor

Re: Logical and phisical queue ....

Physical memory.


Pete

Pete
Chan 007
Honored Contributor

Re: Logical and phisical queue ....

Man,

I/O is Input & Output.

What Buffercache is related your the system using the swap system but in MEM cache and swap.

Chan
James R. Ferguson
Acclaimed Contributor

Re: Logical and phisical queue ....

Hi Manuales:

The Unix buffer cache is a portion of physical memory that holds file buffers.

When an I/O is requested, a "logical" or a "phsical" transfer occurs. If the requested data resides in memory; that is, in the buffer cache, then the I/O was a "logical" one. If a disk access is required to retrieve the data, then a "physical" I/O occured.

Similarly, when a write is performed, data may not be written immediately to the physical medium (e.g. disk), but rather kept in the buffer cache. A read request may then be satisfied from this buffer.

Clearly, keeping some buffer cache generally improves performance since reading and writing memory is much, much faster than doing I/O to electromechanical devices.

The job of the 'syncer' daemon, which runs every 30-seconds, is to flush modified buffers from memory to disk. Too big a buffer cache can cause peaks in processor and I/O which otherwise can impede server performance.

With the latest HP-UX releases, the 'syncer' process has been improved.

The amount of memory you define for the buffer cache is controled by the kernel parameters 'cbc_max_pct', 'dbc_min_pct', 'bufpages' and 'nbuf'.

If you are running a database like Oracle with its own internal buffer cache (SGA) you generally want to keep a small Unix buffer cache. To do otherwise is to "double buffer" which gains nothing.

For more information on configuring the Unix buffer cache, see here:

http://docs.hp.com/en/TKP-90202/index.html

Regards!

...JRF...
Manuales
Super Advisor

Re: Logical and phisical queue ....

Friends !!!

Thanks all !!!!

Manuales.