[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpm-users
Subject:    Re: Performance Testing & Size Limit RPM Package
From:       Jeff Johnson <n3npq () mac ! com>
Date:       2009-12-22 15:31:53
Message-ID: 5ED736CD-9365-420F-B6CD-57AEFA6DEB84 () mac ! com
[Download RAW message or body]

On Dec 22, 2009, at 6:43 AM, Manoj Palhade wrote:

> Dear RPM Team,
> 
> I am doing Performance testing of RPM on My Target (QNX as an OS). I am trying to \
> install RPM Package of size 100 MB. This RPM Package contains zip file of 100 MB. \
> Time taken by RPM to install this 100 MB package is 3.10s; which I believe is wrong \
> for 100 MB rpm package. I haven’t seen Zip file got copied after installation. I \
> found following file at destination location “Test100.zip;000000fa”. I tried to \
> remove this file but I am not able to remove it. 
> 

All upgrade operations haev a 32 bit transaction id.

Files installed during a transaction are first created with the transaction
id suffixed and then renamed into place.

There's no reason I know of why you should not have been able to remove the file.

> I tried same Testing in VMWare Session where QNX is installed; it is working file. \
> I can see zip file of RPM Package getting copied. 
> Is there any limitation on size of RPM Packages and File inside the RPM Packages.

There are limits on both package and file size imposed by 32 bits used
to store the size. The 32bit integter is unsigned, so 4Gb should be the
limit. Internally, rpm uses a 64bit integer for file/package sizes, so
legacy compatibility when saving file/package sizes is the main
reason for the limitation. E.g. cpio cannot represent files >4Gb ...
> Another problem I am getting as follow.
> 
> I am getting following error when I try to un-nstall RPM Packages
> 
> error: cannot create %_repackage_dir /opt/sys/var/spool/repackage/88817
> 

Some element in that path does not exist. Likely /opt/var/spool/repackages.

You can eith create the directory, or disable re-packaging.

To disable, undefine (or set to 0) this macro

#       If non-zero, all erasures will be automagically repackaged.
%_repackage_all_erasures        1

> # rpm -e Test25-1.0-1
> error: cannot create %_repackage_dir /opt/sys/var/spool/repackage/1430
> 
> # rpm -e Test20-1.0-1
> error: cannot create %_repackage_dir /opt/sys/var/spool/repackage/1445
> Last folder name (88817) varies each time. How to avoid this error. Is this error \
> is because of Fat16 file system. 

Yes the last number is the transaction id, and will be different for every \
transaction.

(aside)
The transaction id is a time stamp, seconds since the epoch. You really should
set your clock correctly; other wise transaction id's based on system time will be
meaningless.

73 de Jeff


[Attachment #3 (text/html)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; "><br><div><div>On Dec 22, 2009, at 6:43 AM, \
Manoj Palhade wrote:</div><br class="Apple-interchange-newline"><blockquote \
type="cite"><p>Dear RPM Team,</p><p>I am doing Performance testing of RPM on My \
Target (QNX as an OS). I am trying to install RPM Package of size 100 MB. This RPM \
Package contains zip file of 100 MB. Time taken by RPM to install this 100 MB package \
is 3.10s; which I believe is wrong for 100 MB rpm package. I haven’t seen Zip file \
got copied after installation. I found following file at destination location \
“Test100.zip;000000fa”. I tried to remove this file but I am not able to remove \
it.</p><div><br></div></blockquote><div><br></div>All upgrade operations haev a 32 \
bit transaction id.</div><div><br></div><div>Files installed during a transaction are \
first created with the transaction</div><div>id suffixed and then renamed into \
place.</div><div><br></div><div>There's no reason I know of why you should not have \
been able to remove the file.</div><div><br><blockquote type="cite">

<div>I tried same Testing in VMWare Session where QNX is installed; it is working \
file. I can see zip file of RPM Package getting copied.</div> <div>&nbsp;</div>
<div>Is there any limitation on size of RPM Packages and File inside the RPM \
Packages.</div></blockquote><div><br></div>There are limits on both package and file \
size imposed by 32 bits used</div><div>to store the size. The 32bit integter is \
unsigned, so 4Gb should be the</div><div>limit. Internally, rpm uses a 64bit integer \
for file/package sizes, so</div><div>legacy compatibility when saving file/package \
sizes is the main</div><div>reason for the limitation. E.g. cpio cannot represent \
files &gt;4Gb ...</div><div><blockquote type="cite"><p>Another problem I am getting \
as follow.</p><p>I am getting following error when I try to un-nstall RPM \
Packages</p> <div>error: cannot create %_repackage_dir \
/opt/sys/var/spool/repackage/88817<br>&nbsp;</div></blockquote><div><br></div>Some \
element in that path does not exist. Likely \
/opt/var/spool/repackages.</div><div><br></div><div>You can eith create the \
directory, or disable re-packaging.</div><div><br></div><div>To disable, undefine (or \
set to 0) this macro</div><div><br></div><div><div># &nbsp; &nbsp; &nbsp; If \
non-zero, all erasures will be automagically \
repackaged.</div><div>%_repackage_all_erasures &nbsp; &nbsp; &nbsp; \
&nbsp;1</div><div><br></div><blockquote type="cite"> <div># rpm -e \
Test25-1.0-1<br>error: cannot create %_repackage_dir \
/opt/sys/var/spool/repackage/1430<br><br># rpm -e Test20-1.0-1<br>error: cannot \
create %_repackage_dir /opt/sys/var/spool/repackage/1445</div><p>Last folder name \
(88817) varies each time. How to avoid this error. Is this error is because of Fat16 \
file system.</p></blockquote><div><br></div>Yes the last number is the transaction \
id, and will be different for every \
transaction.</div><div><br></div><div>(aside)</div><div>The transaction id is a time \
stamp, seconds since the epoch. You really should</div><div>set your clock correctly; \
other wise transaction id's based on system time will \
be</div><div>meaningless.</div><div><br></div><div>73 de \
Jeff<br></div><br></body></html>


______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
User Communication List                             rpm-users@rpm5.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic