Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 565618 - condor_submit fsync()s UserLog for each job
condor_submit fsync()s UserLog for each job
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor (Show other bugs)
1.2
All Linux
high Severity high
: 1.3
: ---
Assigned To: Matthew Farrellee
Tomas Rusnak
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-15 13:53 EST by Matthew Farrellee
Modified: 2010-10-14 12:08 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
condor_submit fsync()d the UserLog for each job submitted. With this update, the UserLog is only fsync()d once.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-14 12:08:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description Matthew Farrellee 2010-02-15 13:53:48 EST
Description of problem:

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
100
$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 1000\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
1000


Version-Release number of selected component (if applicable):

All through at least condor 7.4.3-0.1


How reproducible:

100%


Steps to Reproduce:
1. (see description)


Expected results:

Considerably fewer fsyncs, just 1 would be best
Comment 1 Matthew Farrellee 2010-02-15 13:58:16 EST
commit 579dffc9e99b6b50cce342f5468b3b3b8c3a95fb
Author: Dan Bradley <dan@>
Date:   Thu Feb 11 16:35:55 2010 -0600

    Only fsync user log once when writing multiple submit events.
    Previously, 'queue 100' caused 100 calls to fsync.
Comment 2 Matthew Farrellee 2010-02-15 14:24:10 EST
With the patch from #c1 applied:

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace ./release_dir/bin/condor_submit 2>&1 | grep ^fsync | wc -l
1
Comment 3 Matthew Farrellee 2010-02-15 14:32:42 EST
slated for condor 7.4.3-0.2
Comment 4 Tomas Rusnak 2010-03-18 13:21:44 EDT
Problem reproduced on:

$ condor -v
$CondorVersion: 7.4.1 Dec 11 2009 BuildID: RH-7.4.1-0.7.1.el5 PRE-RELEASE $
$CondorPlatform: X86_64-LINUX_RHEL5 $

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
100

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 1000\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
1000
Comment 5 Tomas Rusnak 2010-03-19 06:04:21 EDT
$CondorVersion: 7.4.3 Mar 16 2010 BuildID: RH-7.4.3-0.5.el4 PRE-RELEASE $
$CondorPlatform: X86_64-LINUX_RHEL4 $

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
1

$CondorVersion: 7.4.3 Mar 16 2010 BuildID: RH-7.4.3-0.5.el4 PRE-RELEASE $
$CondorPlatform: I386-LINUX_RHEL4 $

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
1

$CondorVersion: 7.4.3 Mar 16 2010 BuildID: RH-7.4.3-0.5.el5 PRE-RELEASE $
$CondorPlatform: X86_64-LINUX_RHEL5 $

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
1

$CondorVersion: 7.4.3 Mar 16 2010 BuildID: RH-7.4.3-0.5.el5 PRE-RELEASE $
$CondorPlatform: I386-LINUX_RHEL5 $

$ echo -e 'cmd=/bin/sleep\nargs=1m\nlog=test.log\nqueue 100\n' | strace condor_submit 2>&1 | grep ^fsync | wc -l
1

Problem resolved in version 7.4.3-0.5

>>> VERIFIED
Comment 6 Martin Prpič 2010-10-10 06:12:27 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Logging 'condor_submit' fsync()s resulted in the creation of a log for each executed job. With this update, all outputs are logged in a single file.
Comment 7 Matthew Farrellee 2010-10-10 07:04:41 EDT
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Logging 'condor_submit' fsync()s resulted in the creation of a log for each executed job. With this update, all outputs are logged in a single file.+condor_submit fsync()d the UserLog for each job submitted. With this update, the UserLog is only fsync()d once.
Comment 9 errata-xmlrpc 2010-10-14 12:08:51 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0773.html

Note You need to log in before you can comment on or make changes to this bug.