<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6814</bug_id>
          
          <creation_ts>2014-10-07 12:41:05 +0000</creation_ts>
          <short_desc>rpm log file size stays the same no matter what</short_desc>
          <delta_ts>2014-10-09 15:31:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-configuration</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Costin">costin.c.constantin</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46166</commentid>
    <comment_count>0</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2014-10-07 12:41:05 +0000</bug_when>
    <thetext>Hello,

Found this bug while testing genericx86-64 on Sugarbay(5367855fe56db0c09b8fa7bb423b9de18d11eecc). 
The bug is related to TC195 &quot;Check rpm install/removal log file size&quot;. TC content:
1. After system is up, check the log file size after rpm/smart/zypper install/removal
2. For rpm, there will be some database files under /var/lib/rpm/, named as &quot;__db.xxx&quot; and there will be some log files under /var/lib/rpm/log, named as &quot;log.xxxxxx&quot;. Each file will occupy about 10MB.
3. After several rpm/smart/zypper install/removal, rpm will create several log files under /var/lib/rpm/log, which eat lots of system disk space.

No matter how many packages I install/remove, the /var/lib/rpm/log/log.* file stays the same in size (meaning no more than one log file is present). Interesting though, each time I install/remove something, the log file changes it&apos;s time stamp.

For an indepth test I made this small script (where pkgs to install are on the same path with the script):

#!/bin/bash

for i in `seq 100` 
do 
  rpm -ivh groff*
  rpm -ivh man*
  rpm -e man
  rpm -e groff
done

Regards,

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46169</commentid>
    <comment_count>1</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2014-10-07 13:48:37 +0000</bug_when>
    <thetext>hello,

Just performed same test case on genericx86 on AtomPC and results are similar. Same hash used. More interesting is the fact that the log size is the same as on genericx86-64, 10485760 bytes

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46248</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-10-09 15:31:23 +0000</bug_when>
    <thetext>The &apos;log&apos; file is the database journal.  Once the journal fills or on various recovery or other operations, the journal is dumped into the data itself.

So the log simply needs to be large enough to handle a single transaction.

There may be specific settings to lower the size of the log file, look at the BerkleyDB manual and the DB_CONFIG file in /var/lib/rpm.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>