From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: fifo-do-adaptive setting Date: Thu, 20 Nov 2003 12:03:04 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9D592DB37A92234AB635C5585D2D08195CF526@cobra.pc.cognex.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1069347813 20109 80.91.224.253 (20 Nov 2003 17:03:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2003 17:03:33 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Nov 20 18:03:29 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AMsDJ-0006KP-00 for ; Thu, 20 Nov 2003 18:03:29 +0100 Original-Received: (qmail 3051 invoked by uid 5); 20 Nov 2003 17:03:19 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3024 invoked by uid 49493); 20 Nov 2003 17:03:18 -0000 Original-Received: from Andy.Cohen@cognex.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.7/5.0):. Processed in 0.981166 secs); 20 Nov 2003 17:03:18 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 20 Nov 2003 17:03:17 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HON00K0YU1GCJ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 20 Nov 2003 12:03:16 -0500 (EST) Original-Received: from cambridge1-smrly1.gtei.net (cambridge1-smrly1.gtei.net [199.94.215.245]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HON00ND1U182K@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 20 Nov 2003 12:03:13 -0500 (EST) Original-Received: from cognex.cognex.com (cognex-cp.cognex.com [198.232.30.75]) by cambridge1-smrly1.gtei.net (Postfix) with ESMTP id EDB501393D for ; Thu, 20 Nov 2003 17:03:07 +0000 (GMT) Original-Received: from bambi.pc.cognex.com (bambi.pc.cognex.com [10.15.160.9]) by cognex.cognex.com (8.12.10/8.12.10) with ESMTP id hAKH36wT024872 for ; Thu, 20 Nov 2003 12:03:07 -0500 (EST) Original-Received: by bambi.pc.cognex.com with Internet Mail Service (5.5.2653.19) id <41DTJ1CS>; Thu, 20 Nov 2003 12:03:06 -0500 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:5867 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5867 Thanks to all who weighed in on this. The consensus was that there is no harm in setting it to 0. It's highly recommended to have it set to 0 if the primary purpose of the server is to run a database (which our's is). The default value is 1 and there may be some situations that warrant this setting. Here are the responses: +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_ The system tuning guide (there is a whole book, should have been updated for V5.1 or V5.1A, I have the V5.1B version in front of me) is explicit that if you are running a database server, setting fifo_do_adaptive=0 is strongly recommended. See also the sys_attrs_vfs reference page. In any case, if the primary use of the system is to run Oracle stuff, then go with the recommendation; if the primary use is general timesharing, you may get better performance with the default, at the cost of some degradation in Oracle performance. Tom +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_ The recommendation to set it to 0 is based on a history of issues with the new wire method we attempted to introduce back in the 4.0 stream.. Setting it to 0 is the safest. ... Anyways, fifi-do-adaptive is a performance setting. When it's turned on the kernel will attempt to make fifo operations more efficient by waiting for the data to reach a certain threshold. The Oracle BEQ protocol uses FIFOs extensively but expect the data to be passed immediately. As a result, the fifo-do-adaptive setting will actually achieve the opposite of our intent in some Oracle environments and turning off adaptive fifos will remedy this situation. In environments where you don't use the BEQ protocol this setting has no effect what so ever, so it's safe to turn it of here too - thus the recommendation. // Thomas +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_ fifo-do-adaptive is an optimization for high throughput at the expense of response time. If you are putting multi-megabytes of small messages through a fifo it will be a big win. However, Oracle uses fifo's for chatting between processes, and the fifo-do-adaptive=1 wil cause significent delays. Setting fifo-do-adaptive=0 will not cause any loss of function, at worst you may see some loss of performance. Here is a description from "man sys_attrs_vfs": ================================================ fifo_do_adaptive A value that enables (1) or disables (0) the pipe code that attempts to do batch writes to a pipe and deliver the data in a single call to a reader. Default value: 1 (enabled) Here is a description of the new_wire_method: ============================================== The "new-wire-method" is also known as "light-weight wiring". It is just that -- a faster way of indicating to the Virtual Memory subsystem that a page of physical memory is locked, i.e., "wired", into an address space. Light-weight wiring comes into effect when a memory wiring request happens to find that *all* the pages in the requested address range are already memory resident. The "lightness" comes in the fact that wiring can be quickly reflected in the page table entries (PTEs) of the affected pages rather than in the higher level address maps. Map-based, "heavy-weight" wiring is necessary when the pages to be wired are nonresident, that is, when they must be faulted in from backing store before wiring can occur. Note that light-weight wiring only occurs for requests from within the kernel, such as for DMA i/o. Light-weight wiring is never used as the result of a user wiring request made via mlock, mlockall, or plock. ************* +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_ Thanks to Dr. Tom Blinn, Thomas L. Sjolshagen, Blair Phillips, and John Lanier. Andy Cohen Database Systems Administrator Cognex Corporation 1 Vision Drive Natick, MA 01760 508-650-3079 ORIGINAL QUESTION =============== I've just run sys_check on a DS20E machine running 5.1A PK3. We run Oracle 8174 on this machine and one of the recommendations from sys_check is to set fifo-do-adaptive=0. Oracle's metaLink site has a general recommendation to make this setting as well. I don't believe we are experiencing the difficulty that this setting is designed to correct but I was wondering what the implications could be if we set it to 0 (it defaults to 1) anyway; i.e. any risk or downside to setting it to 0?