Performance tuning on RedHat Enterprise Linux 3

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default Re: Performance tuning on RedHat Enterprise Linux 3

    On Tue, 07 Dec 2004 07:50:44 -0500, P.J. Josh Rovero
    <rovero@sonalysts.com> wrote:
    > There are many reports of kernel problems with memory allocation
    > (too agressive) and swap issues with RHEL 3.0 on both RAID
    > and non-RAID systems. I hope folks have worked through all
    > those issues before blaming postgresql.
    We have seen several boxes have kswapd go crazy (near 100% CPU) on
    RHEL 3 boxes. Upgrading to kernel 2.4.21-4 fixed this.

    Tony Wasson

    ---------------------------(end of broadcast)---------------------------
    TIP 3: if posting/reading through Usenet, please send an appropriate
    subscribe-nomail command to [email]majordomo@postgresql.org[/email] so that your
    message can get through to the mailing list cleanly

    Tony Wasson Guest

  2. Similar Questions and Discussions

    1. MFS 2 on Linux RedHat Enterprise 4
      I have installed the MFS2 on my Linux box and it runs fine. I have installed it into /var/www/html dir so that i can connect using an external web...
    2. Linux Redhat Enterprise 3.0
      Hi, I are trying to install "Flash communication server 1.5 FCS_1_5_r120_linux" (trial version) on Linux RedHat Enterprise 3 i686 but got an...
    3. Performance Tuning: stand-alone vs. enterprise
      We had significant performance issues where our Jrun began to consume more and more of the processor as it tried to serve pages to 300 or so users. ...
    4. Clarification on SQL performance tuning....
      This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ...
    5. Oracle Tuning Pack for 8i on RedHat?
      dev@null wrote in message news:<669tvus2hgnmueumurn1ov96lh51fjjots@4ax.com>... AFAIK it only exists for NT Regards Sybrand Bakker Senior...
  3. #2

    Default Re: Performance tuning on RedHat Enterprise Linux 3

    >>>Does postgres actually do multiple concurrent sorts within a single
    >>>backend?
    >>>
    >>>
    >>Certainly. Consider for example a merge join with each input being
    >>sorted by an explicit sort step. DISTINCT, ORDER BY, UNION, and
    >>related operators require their own sort steps in the current
    >>implementation. It's not difficult to invent queries that require
    >>arbitrarily large numbers of sort steps.
    >>
    >>
    >
    >Tom, in Bruce's document on performance tuning, the page titled
    >"Multiple CPUs" states:
    >
    >"POSTGRESQL uses a multi-process model, meaning each database connection
    >has its own Unix process...POSTGRESQL does not use multi-threading to
    >allow a single process to use multiple CPUs."
    >
    >I took this to mean that PostgreSQL was not multi-threaded at all, and
    >that each connection was serviced by a single, non-threaded process.
    >Have I interpreted this incorrectly? Are you saying that the backend
    >process actually is multi-threaded? In the example you site, multiple
    >sorts could be accomplished serially in a non-threaded process.
    >
    >
    Guy,

    You understand correctly. Each process is only running one query at
    once, but in terms of memory usage, several sorts are executing in
    parallel.

    For example, a merge join requires that both the left and right tables
    be sorted; as the join is being executed, both the left and right tables
    are being sorted. (Why doesn't it sort one and then the other? It
    would be a waste of memory to require that one of the [sorted] tables be
    kept in memory or written completely to the disk and then fetched
    later. Instead, it just sorts them both as it goes along.)

    However, this does mean that the amount of per-process memory being used
    for sorting will not vary with the "workload" of the database or number
    of people running that query (as each process only runs the query
    once). The amount of per-process memory used will vary with the
    complexity of the query and the plan chosen by the planner.

    Paul Tillotson

    ---------------------------(end of broadcast)---------------------------
    TIP 3: if posting/reading through Usenet, please send an appropriate
    subscribe-nomail command to [email]majordomo@postgresql.org[/email] so that your
    message can get through to the mailing list cleanly

    Paul Tillotson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139