Hi Monks
A little background:
I have a radius server (OSC Radiator on FreeBSD 8.2) which logs radius accounting packets to a postgresql 8.4 database, via the PERL DBD:Pg and DBI database interface modules. In general, I've been seeing performance issues when logging to the postgresql database, and when I turn off logging to the database, the performance issues vanish. The performance issues I see manifest on the NAS end of the "chain of information flow", basically, the server sending radius accounting packets to the radius server indicates dropped and retried attempts when I enable logging to the database on the radius server, and immediately begins working optimally when I disable the database on the remote radius server.
All this leads me to think that there is some kind of performance issue at either of 3 layers of the overall system:
1. The Radiator server software itself.
2. The Postgresql Server software
3. The interface between Radiator and Postgresql (PERL DBD::Pg and DBI)
Here is a somewhat simplified depiction of the informaton flow:
{NAS}---{radius accounting packets over network}--->{radius server software}--{PERL DBI, DBD}-->{Postgresql}{underlying server OS and hardware}
My Question is: How would I analyse (or otherwise isolate performance issues) around the DBD:Pg and DBI perl interface between the radius software and the postgresql database ?
Many thanks in advance for your wisdom.
Traiano
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.