Controlling CPU Usage in PostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a nightly process that runs in production to refresh reports.  This process runs fine but takes a significant portion of the CPU for an hour or so.  I was wanting to limit this particular process so it does not consume the full CPU while running (unless nothing else needs the CPU cycles anyway).

Is there a way I can tell PostgreSQL to give session a low priority so even if it does take the full CPU, it only does so if it would otherwise be idle?  This process runs a series of functions so if there is a command I can put at the beginning of each function, that would be ideal.  I would rather do it after logging into PostgreSQL and not by limiting the process at the OS level though that may be an option if there is nothing better.

Of course, if there are other ways to approach this, I am quite open to alternatives.

Thanks,
Aaron

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
==================================================================

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux