Unix Technical Forum

Disk writes

This is a discussion on Disk writes within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi, We've a fedora core 3 box with PostgreSQL 8.0. There is some performance problems with the server and ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 09:10 AM
carlosreimer
 
Posts: n/a
Default Disk writes

Hi,

We've a fedora core 3 box with PostgreSQL 8.0.

There is some performance problems with the server and I discovered with vmstat tool that there is some process writing a lot of information in the disk subsystem.

I stopped the database and even so vmstat showed the same rates of disk writes.

I could I discover who is sending so many data to the disks?

Thanks in advance,

Reimer

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 09:10 AM
Florian Weimer
 
Posts: n/a
Default Re: Disk writes

> I could I discover who is sending so many data to the disks?

Documentation/laptop-mode.txt in the Linux kernel tree has some
instructions how to track down unwanted disk writes.

--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Durlacher Allee 47 tel: +49-721-96201-1
D-76131 Karlsruhe fax: +49-721-96201-99

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 09:10 AM
Scott Marlowe
 
Posts: n/a
Default Re: Disk writes

On Thu, 2006-07-27 at 20:25, carlosreimer wrote:
> Hi,
>
> We've a fedora core 3 box with PostgreSQL 8.0.
>
> There is some performance problems with the server and I discovered
> with vmstat tool that there is some process writing a lot of
> information in the disk subsystem.
>
> I stopped the database and even so vmstat showed the same rates of
> disk writes.
>
> I could I discover who is sending so many data to the disks?


Does top show any processes running?

On my FC4 laptop, the one that kept cranking up all the time was
prelink. I don't really care if it takes an extra couple seconds for an
app to open each time, so I disabled that.

The other process I've seen do this, on older flavors of linux mostly,
is kswapd erroneously writing and reading the swap partition a lot.
Seems to happen when the swap partition is smaller than physical memory,
and there's a lot of other I/O going on. But I think that got fixed in
the 2.6 kernel tree.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 09:13 AM
Markus Schaber
 
Posts: n/a
Default Re: Disk writes

Hi, Reimer,

carlosreimer wrote:

> There is some performance problems with the server and I discovered with
> vmstat tool that there is some process writing a lot of information in
> the disk subsystem.

[..]
> I could I discover who is sending so many data to the disks?


It could be something triggered by your crontab (updatedb comes in my
mind, or texpire from leafnode etc.).

Another idea would be that you have statement logging on, or something
else that produces lots of kernel or syslog messages[1], and your
syslogd is configured to sync() after every line...

HTH,
Markus

[1] We once had such a problem because an ill-compiled kernel having USB
verbose logging on...
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com