Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47387
Analysis of large access logs needs to be much faster. Some areas for improvement:
* use db files for temp files
Specifically, use tied hashes, where the hashes are tied to database files, using the perl DB_File interface.
* for simple arrays, use DB_RECNO
* for hashes where order is not important, use DB_HASH
* for hashes where order is important, use DB_BTREE
for example:
{{{
my %h1;
tie %h1, "DB_File", "$dbdir/h1.db", O_CREAT|O_RDWR, 0666, $DB_BTREE;
$h1{'e'} = 5;
$h1{'d'} = 4;
$h1{'c'} = 3;
$h1{'b'} = 2;
$h1{'a'} = 1;
while (my($k,$v) = each %h1) {
print "$k = $v\n";
}
}}}
this prints
{{{
a = 1
b = 2
c = 3
d = 4
e = 5
}}}
* not sure what else - perhaps optimize regular expressions?
For CBP
Comment 3srkrishn@redhat.com
2014-08-20 12:57:41 UTC
This bug has been verified as shown below:
Total Log Lines Analysed: 8103117
----------- Access Log Output ------------
Start of Logs: 31/Jan/2012:00:00:16
End of Logs: 01/Feb/2012:00:00:45
real 5m52.450s
user 5m50.612s
sys 0m0.837s
[root@hp-dl360g4-01 ~]# logconv.pl access.20120131-000045 | free -m
total used free shared buffers cached
Mem: 1876 1797 78 0 108 1373
-/+ buffers/cache: 315 1560
Swap: 4031 0 4031
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3239 root 20 0 142m 16m 2720 R 99.9 0.4 0:04.34 perl
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3239 root 20 0 142m 16m 2720 R 99.9 0.9 0:05.34 perl
this was tested on build 1.2.11.15.40
Comment 4Sankar Ramalingam
2014-08-21 09:07:23 UTC
Based on previous comment from Sriram, marking the bug as Verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2014-1385.html