[Pidgin] #5597: Pidgin calls fsync far too often.

Pidgin trac at pidgin.im
Tue Apr 22 03:33:28 EDT 2008


#5597: Pidgin calls fsync far too often.
-------------------+--------------------------------------------------------
Reporter:  neuron  |       Owner:  lschiere     
    Type:  defect  |      Status:  new          
Priority:  minor   |   Component:  unclassified 
 Version:  2.4.1   |    Keywords:  io fsync ext3
 Pending:  0       |  
-------------------+--------------------------------------------------------
 Pidgin does a fsync on every purple_util_write_data_to_file_absolute,
 which seems to be called quite a lot.  When you call fsync on an ext3
 filesystem (which is used by most distributions) it not only sync's the
 current file, but also the whole buffer memory, which can cause serius
 latency problems.

 There should be no reason why you need to issue an fsync before closing
 the file.  If absolutely needed then please only fsync buddy list updates,
 not things like chat logs/buddy icons changing.

 This issue is also posted here:
 https://bugs.launchpad.net/ubuntu/+source/pidgin/+bug/197254
 And quite possibly here as well : http://developer.pidgin.im/ticket/37

 I used latencytop to locate what was causing io problems for me (I'm on an
 encrypted raid, so I'm seeing this issue very easily).

-- 
Ticket URL: <http://developer.pidgin.im/ticket/5597>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list