Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 696346 Details for
Bug 910217
Implement a way for dynamically disabling eager-lock based on number of files opened on the inode
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script used to execute the steps in re-creating the bug.
append2log.py (text/x-python), 1.05 KB, created by
Pranith Kumar K
on 2013-02-12 02:40:25 UTC
(
hide
)
Description:
Script used to execute the steps in re-creating the bug.
Filename:
MIME Type:
Creator:
Pranith Kumar K
Created:
2013-02-12 02:40:25 UTC
Size:
1.05 KB
patch
obsolete
>#!/usr/bin/python ># ># append2log.py -- append records to a file with fixed inter-record delay ># >import os >import sys >import time >import errno > >def usage(msg): > print msg > print 'usage: append2log file count delay' > #print 'environment variables:' > sys.exit(1) > >try: > fn = sys.argv[1] > count = int(sys.argv[2]) > delay = float(sys.argv[3]) >except Exception as e: > usage('exception %s while parsing command line arguments %s'%(str(e), str(sys.argv[1:]))) > >print 'file %s count %d delay %f'%(fn, count, delay) > >flags = os.O_APPEND|os.O_WRONLY|os.O_CREAT >if os.getenv("NO_O_APPEND"): > flags &= ~os.O_APPEND >fd = os.open(fn, flags) >response_times=[] >for j in range(0, count): > # message response time of write and save it > t0 = time.time() > os.write(fd, 'line %d\n'%j) > t1 = time.time() > delta_t = t1 - t0 > response_times.append(delta_t) > time.sleep(delay) >os.close(fd) > ># output response times > >csv_record = '' >max_rsp=-1 >for r in response_times: > csv_record += str(r) + ' , ' > max_rsp = max(max_rsp, r) >print 'max rsp. time: %f '%max_rsp >#print csv_record >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 910217
: 696346