<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3527" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=289130507-14052009>Hi, 
Experts,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=289130507-14052009>&nbsp;&nbsp;&nbsp; I 
have one directory like this (about 300M, over 50000 files):</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/opt/xxx/usr/local/gcc-4.3-binutils-2.18</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=289130507-14052009>&nbsp;&nbsp;&nbsp; I 
want to create one rpm package for it, when installing the rpm package, it 
should extract the files and put it to the same location 
(/opt/xxx/usr/local/gcc-4.3-binutils-2.18)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=289130507-14052009>&nbsp;&nbsp;&nbsp; 
finally I got the package, but when installing the rpm, it hangs with only 
printing out "preparing...", then I have to kill it manually</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
[sstims@harry_rh52 ~]$ sudo rpm -Uvh --nodeps --nofiles&nbsp; --noscript --nomd5 
cs-xxx.rpm<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Preparing...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Killed<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=289130507-14052009>&nbsp;&nbsp;&nbsp; 
with help of strace, it hangs with mmap2 system call</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=289130507-14052009>&nbsp;</DIV></SPAN></FONT>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN 
class=624275310-13052009>#</SPAN>sudo strace rpm -ivh cs-xxx.rpm</FONT>
<DIV><FONT face=Arial size=2><SPAN 
class=624275310-13052009>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp; </SPAN>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=624275310-13052009><SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>&nbsp;&nbsp;&nbsp; 
</SPAN>mremap(0x545a6000, 1616502784, 1616506880, MREMAP_MAYMOVE) = 
0x545a6000<BR><SPAN class=624275310-13052009>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp; </SPAN></SPAN>pread64(6, 
"\0\0\0\0\1\0\0\0\363\1\0\0\0\0\0\0\0\0\0\0\214\0a\7\0\2\367\17\356\17\346\17"..., 
4096, 2043904) = 4096<BR><SPAN class=624275310-13052009><SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>&nbsp;&nbsp;&nbsp; 
</SPAN>mmap2(NULL, 1077669888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x141e7000<BR><SPAN 
class=624275310-13052009>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN>Killed<BR></FONT></FONT></DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I 
restart the machine and run "sudo rpm --rebuilddb", but still 
failed.</FONT></SPAN></DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=289130507-14052009>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
size=2>If I package it with fewer files, it can be installed, but still very 
slow.&nbsp; The most strange issue is that it need much memory when installing 
the rpm package, about 800M is used, but finally hang.</FONT></SPAN></DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
Can you help to have a look on this issue? </FONT></SPAN></DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<FONT face=Arial size=2>I build the rpm package with rpm 4.0.4, and install the 
package with rpm 4.4.2</FONT></SPAN></DIV>
<DIV><SPAN 
class=289130507-14052009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<FONT face=Arial size=2>I failed to create the rpm package with rpm 4.4.2, 
segment fault occured.</FONT></SPAN></DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2>B.R.</FONT></SPAN></DIV>
<DIV><SPAN class=289130507-14052009><FONT face=Arial 
size=2>Harry</FONT></SPAN></DIV></DIV></SPAN></BODY></HTML>