<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/linuxcompressed/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/linuxcompressed/bugs/</id><updated>2002-11-23T01:22:46Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>dd ENOMEM problems</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/88/" rel="alternate"/><published>2002-11-23T01:22:46Z</published><updated>2002-11-23T01:22:46Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.nete20884b6bb4b7016f1d27e301d31d83306bb3749</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Reported by Claudio Martella&lt;/p&gt;
&lt;p&gt;this is what i get:&lt;/p&gt;
&lt;p&gt;junior:~# dd if=/dev/cdrom of=/dev/null&lt;br /&gt;
dd: opening `/dev/cdrom': Cannot allocate memory&lt;/p&gt;
&lt;p&gt;junior:~# strace dd if=/dev/hdc of=/dev/null bs=1024&lt;br /&gt;
execve(&amp;amp;quot;/bin/dd&amp;amp;quot;, [&amp;amp;quot;dd&amp;amp;quot;, &amp;amp;quot;if=/dev/hdc&amp;amp;quot;, &amp;amp;quot;of=/dev/null&amp;amp;quot;,&lt;br /&gt;
&amp;amp;quot;bs=1024&amp;amp;quot;], [/*&lt;br /&gt;
31 vars */]) = 0&lt;br /&gt;
uname({sys=&amp;amp;quot;Linux&amp;amp;quot;, node=&amp;amp;quot;junior&amp;amp;quot;, ...}) = 0&lt;br /&gt;
brk(0)                                  = 0x804fcd8&lt;br /&gt;
access(&amp;amp;quot;/etc/ld.so.nohwcap&amp;amp;quot;, F_OK)      = -1 ENOENT (No&lt;br /&gt;
such file or&lt;br /&gt;
directory)&lt;br /&gt;
open(&amp;amp;quot;/etc/ld.so.preload&amp;amp;quot;, O_RDONLY)    = -1 ENOENT (No&lt;br /&gt;
such file or&lt;br /&gt;
directory)&lt;br /&gt;
open(&amp;amp;quot;/etc/ld.so.cache&amp;amp;quot;, O_RDONLY)      = 3&lt;br /&gt;
fstat64(3, {st_mode=S_IFREG|0644, st_size=57835, ...}) = 0&lt;br /&gt;
old_mmap(NULL, 57835, PROT_READ, MAP_PRIVATE, 3, 0) =&lt;br /&gt;
0x40012000&lt;br /&gt;
close(3)                                = 0&lt;br /&gt;
open(&amp;amp;quot;/lib/libc.so.6&amp;amp;quot;, O_RDONLY)        = 3&lt;br /&gt;
read(3,&lt;br /&gt;
&amp;amp;quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@Z\1\000&amp;amp;quot;...,&lt;br /&gt;
1024) = 1024&lt;br /&gt;
fstat64(3, {st_mode=S_IFREG|0755, st_size=1109900,&lt;br /&gt;
...}) = 0&lt;br /&gt;
old_mmap(NULL, 1122692, PROT_READ|PROT_EXEC,&lt;br /&gt;
MAP_PRIVATE, 3, 0) =&lt;br /&gt;
0x40021000&lt;br /&gt;
mprotect(0x4012a000, 37252, PROT_NONE)  = 0&lt;br /&gt;
old_mmap(0x4012a000, 20480, PROT_READ|PROT_WRITE,&lt;br /&gt;
MAP_PRIVATE|MAP_FIXED,&lt;br /&gt;
3, 0x109000) = 0x4012a000&lt;br /&gt;
old_mmap(0x4012f000, 16772, PROT_READ|PROT_WRITE,&lt;br /&gt;
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4012f000&lt;br /&gt;
close(3)                                = 0&lt;br /&gt;
open(&amp;amp;quot;/lib/libc.so.6&amp;amp;quot;, O_RDONLY)        = 3&lt;br /&gt;
read(3,&lt;br /&gt;
&amp;amp;quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@Z\1\000&amp;amp;quot;...,&lt;br /&gt;
1024) = 1024&lt;br /&gt;
fstat64(3, {st_mode=S_IFREG|0755, st_size=1109900,&lt;br /&gt;
...}) = 0&lt;br /&gt;
old_mmap(NULL, 1122692, PROT_READ|PROT_EXEC,&lt;br /&gt;
MAP_PRIVATE, 3, 0) =&lt;br /&gt;
0x40021000&lt;br /&gt;
mprotect(0x4012a000, 37252, PROT_NONE)  = 0&lt;br /&gt;
old_mmap(0x4012a000, 20480, PROT_READ|PROT_WRITE,&lt;br /&gt;
MAP_PRIVATE|MAP_FIXED,&lt;br /&gt;
3, 0x109000) = 0x4012a000&lt;br /&gt;
old_mmap(0x4012f000, 16772, PROT_READ|PROT_WRITE,&lt;br /&gt;
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4012f000&lt;br /&gt;
close(3)                                = 0&lt;br /&gt;
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,&lt;br /&gt;
MAP_PRIVATE|MAP_ANONYMOUS,&lt;br /&gt;
-1, 0) = 0x40134000&lt;br /&gt;
munmap(0x40012000, 57835)               = 0&lt;br /&gt;
brk(0)                                  = 0x804fcd8&lt;br /&gt;
brk(0x8050cd8)                          = 0x8050cd8&lt;br /&gt;
brk(0x8051000)                          = 0x8051000&lt;br /&gt;
close(0)                                = 0&lt;br /&gt;
open(&amp;amp;quot;/dev/hdc&amp;amp;quot;, O_RDONLY|O_LARGEFILE)  = -1 ENOMEM&lt;br /&gt;
(Cannot allocate&lt;br /&gt;
memory)&lt;br /&gt;
write(2, &amp;amp;quot;dd: &amp;amp;quot;, 4dd: )                     = 4&lt;br /&gt;
write(2, &amp;amp;quot;opening `/dev/hdc\'&amp;amp;quot;, 18opening `/dev/hdc') &lt;br /&gt;
= 18&lt;br /&gt;
write(2, &amp;amp;quot;: Cannot allocate memory&amp;amp;quot;, 24: Cannot&lt;br /&gt;
allocate memory) = 24&lt;br /&gt;
write(2, &amp;amp;quot;\n&amp;amp;quot;, 1&lt;br /&gt;
)                       = 1&lt;br /&gt;
_exit(1)                                = ?&lt;br /&gt;
junior:~# free&lt;br /&gt;
total       used       free     shared &lt;br /&gt;
buffers&lt;br /&gt;
cached&lt;br /&gt;
Mem:        126508     117052       9456 &lt;br /&gt;
0&lt;br /&gt;
5796      55684&lt;br /&gt;
-/+ buffers/cache:      55572      70936&lt;br /&gt;
Swap:       151192      78200      72992&lt;/p&gt;
&lt;p&gt;junior:~# cat /proc/meminfo&lt;br /&gt;
total:    used:    free:  shared: buffers:  cached:&lt;br /&gt;
Mem:  129544192 125943808  3600384        0 &lt;br /&gt;
7217152 69705728&lt;br /&gt;
Swap: 154820608 78082048 76738560&lt;br /&gt;
MemTotal:       126508 kB&lt;br /&gt;
MemFree:          3516 kB&lt;br /&gt;
MemShared:           0 kB&lt;br /&gt;
Buffers:          7048 kB&lt;br /&gt;
Cached:          56000 kB&lt;br /&gt;
CCacheAlloc:     14952 kB&lt;br /&gt;
CCacheUsed:    4162504 kB&lt;br /&gt;
SwapCached:      12072 kB&lt;br /&gt;
Active:          64032 kB&lt;br /&gt;
Inactive:        33272 kB&lt;br /&gt;
HighTotal:           0 kB&lt;br /&gt;
HighFree:            0 kB&lt;br /&gt;
LowTotal:       126508 kB&lt;br /&gt;
LowFree:          3516 kB&lt;br /&gt;
SwapTotal:      151192 kB&lt;br /&gt;
SwapFree:        74940 kB&lt;/p&gt;
&lt;p&gt;junior:~# uname -a&lt;br /&gt;
Linux junior 2.4.19-ck10 #2 Tue Oct 15 14:31:43 CEST&lt;br /&gt;
2002 i686 unknown&lt;br /&gt;
unknown GNU/Linux&lt;/p&gt;
&lt;p&gt;junior:/usr/src# cat /proc/comp_cache_*&lt;br /&gt;
compressed cache - fragmentation histogram (free space&lt;br /&gt;
x fragmented space)&lt;br /&gt;
total  &amp;amp;lt;1000  -2000  -3000  -4000  -5000 &lt;br /&gt;
-6000  -7000  -8000  8192&lt;br /&gt;
1 -  400:  1639  1522    91    22     4     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
401 -  800:   118   111     7     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
801 - 1200:    64    62     2     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
1201 - 1600:    30    29     0     0     0     1     0&lt;br /&gt;
0     0     0&lt;br /&gt;
1601 - 2000:    19    19     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
2001 - 2400:     9     9     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
2401 - 2800:     3     3     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
2801 - 3200:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
3201 - 3600:     1     1     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
3601 - 4000:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
4001 - 4400:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
4401 - 4800:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
4801 - 5200:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
5201 - 5600:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
5601 - 6000:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
6001 - 6400:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
6401 - 6800:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
6801 - 7200:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
7201 - 7600:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
7601 - 8000:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
8001 - 8192:     0     0     0     0     0     0     0&lt;br /&gt;
0     0     0&lt;br /&gt;
compressed cache - free space histogram (free space x&lt;br /&gt;
number of fragments)&lt;br /&gt;
total     0f     1f     2f     3f     4f&lt;br /&gt;
5f     6f   more&lt;br /&gt;
total 9149 act 3743 pages 3774&lt;br /&gt;
0:       4      0      0      1      0      2&lt;br /&gt;
1      0      0&lt;br /&gt;
1 -  400:    1639      0      0      2    210    575&lt;br /&gt;
404    235    213&lt;br /&gt;
401 -  800:     118      0      0      1     28     34&lt;br /&gt;
27     14     14&lt;br /&gt;
801 - 1200:      64      0      0      3     19     19&lt;br /&gt;
14      3      6&lt;br /&gt;
1201 - 1600:      30      0      0      3      7     13&lt;br /&gt;
3      3      1&lt;br /&gt;
1601 - 2000:      19      0      0      1      6      7&lt;br /&gt;
3      2      0&lt;br /&gt;
2001 - 2400:       9      0      0      0      3      6&lt;br /&gt;
0      0      0&lt;br /&gt;
2401 - 2800:       3      0      0      0      1      1&lt;br /&gt;
1      0      0&lt;br /&gt;
2801 - 3200:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
3201 - 3600:       1      0      0      0      1      0&lt;br /&gt;
0      0      0&lt;br /&gt;
3601 - 4000:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
4001 - 4400:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
4401 - 4800:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
4801 - 5200:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
5201 - 5600:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
5601 - 6000:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
6001 - 6400:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
6401 - 6800:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
6801 - 7200:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
7201 - 7600:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
7601 - 8000:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
8001 - 8192:       0      0      0      0      0      0&lt;br /&gt;
0      0      0&lt;br /&gt;
compressed cache - statistics&lt;br /&gt;
general&lt;br /&gt;
- (S) swap cache support enabled&lt;br /&gt;
- (P) page cache support enabled&lt;br /&gt;
- compressed swap support enabled&lt;br /&gt;
- maximum used size:   16384 KiB&lt;br /&gt;
- comp page size:          8 KiB&lt;br /&gt;
- failed allocations:    742&lt;br /&gt;
algorithm LZO&lt;br /&gt;
- (C) compressed pages:    4134129  (S:   3% P:  96%)&lt;br /&gt;
- (D) decompressed pages:  1059944  (S:   8% P:  91%)&lt;br /&gt;
D/C:  25%&lt;br /&gt;
- (R) read pages:          1012456  (S:   2% P:  97%)&lt;br /&gt;
R/C:  24%&lt;br /&gt;
- (W) written pages:         55168  (S: 100% P:   0%)&lt;br /&gt;
W/C:   1%&lt;br /&gt;
compression ratio:            51% (S:  32% P:  51%)&lt;br /&gt;
junior:/usr/src# vmstat&lt;br /&gt;
procs                      memory      swap      &lt;br /&gt;
io     system      cpu&lt;br /&gt;
r  b  w   swpd   free   buff  cache   si   so    bi&lt;br /&gt;
bo   in    cs us sy id&lt;br /&gt;
0  0  0  76240   3388   7816  53404    0    0     5&lt;br /&gt;
17   16    20  1  0 99&lt;/p&gt;
&lt;p&gt;junior:/usr/src# uptime&lt;br /&gt;
12:10:33 up 20 days, 22:18,  4 users,  load average:&lt;br /&gt;
0.10, 0.10, 0.09&lt;/p&gt;
&lt;p&gt;after a reboot everything was fine.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Over allocates ram it doesnt have</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/87/" rel="alternate"/><published>2002-11-22T13:36:32Z</published><updated>2002-11-22T13:36:32Z</updated><author><name>Con Kolivas</name><uri>https://sourceforge.net/u/ckolivas/</uri></author><id>https://sourceforge.nete482b2f83a4daa6fc0b64a0ef61c35a710f72923</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Repeatedly allocating ram (eg with the mem_load utility&lt;br /&gt;
from contest) makes cc allocate more ram than is&lt;br /&gt;
available. Swap levels out at 70% usage for a while&lt;br /&gt;
then shoots up to 100% and the kernel oopses.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Freeing swap buffer with locked buffers</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/86/" rel="alternate"/><published>2002-08-07T18:25:11Z</published><updated>2002-08-07T18:25:11Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.net778e1599027c1b1ff322e4ff71acf04a4ca0511e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is a potential bug in refill_swp_buffer() that&lt;br /&gt;
can free a swap buffer pages that has buffers.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Corruption after a failed writepage()</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/85/" rel="alternate"/><published>2002-08-07T18:00:43Z</published><updated>2002-08-07T18:00:43Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.net9608a494541da9846e7acd3eadc5a1cedeee3485</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;After a failed writepage(), the swap buffer would not&lt;br /&gt;
set the fragment-&amp;amp;gt;swp_buffer to NULL, so it might end&lt;br /&gt;
having its fragment field nulled in the future,&lt;br /&gt;
possibly when set to a fragment that is being written.&lt;br /&gt;
If that happens, the fragment would not be freed and&lt;br /&gt;
never freed by the writeout code, since it had been&lt;br /&gt;
removed from the LRU queue.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error decompressing fragment</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/84/" rel="alternate"/><published>2002-08-07T17:57:55Z</published><updated>2002-08-07T17:57:55Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.netbb28a8912071fb4c6e2c44bfc2af9c55f6440bba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Once, compiling the linux kernel on a host kernel with&lt;br /&gt;
compressed cache, we hit a bug from a error happened&lt;br /&gt;
when decompressing a fragment (in the case, the error&lt;br /&gt;
was -4 in LZO).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Deadlock in Kernel compilation</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/83/" rel="alternate"/><published>2002-08-07T17:55:28Z</published><updated>2002-08-07T17:55:28Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.neta2961602b4c214d93320f68098597a91f4cd9fd1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A deadlock happens when compiling the linux kernel on a&lt;br /&gt;
host kernel with compressed cache. It usually happens&lt;br /&gt;
when used make -j 2/4, but also happens with make -j 1.&lt;br /&gt;
From the stack traces, a process hangs waiting for a&lt;br /&gt;
swap buffer page in comp_cache_free_locked() and all&lt;br /&gt;
the other processes hang trying to lock the&lt;br /&gt;
fragment-&amp;amp;gt;comp_page which is locked  waiting for the&lt;br /&gt;
swap buffer.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Oops in ext2_check_page</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/82/" rel="alternate"/><published>2002-07-29T15:27:35Z</published><updated>2002-07-29T15:27:35Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.nete7c1f30fcb927cc7b0b89fa4762a21c1334ceff4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We get a page-&amp;amp;gt;mapping == NULL, and since it is&lt;br /&gt;
accessed without any check in the first line of this&lt;br /&gt;
function, it oopses. It looks like the page has been&lt;br /&gt;
removed from page cache while flushing a compressed&lt;br /&gt;
cache entry.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>kernel BUG at inode.c:518</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/81/" rel="alternate"/><published>2002-07-29T12:51:34Z</published><updated>2002-07-29T12:51:34Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.net5a17520caddb1047a9b9ec82cf150fbc6c0ee84a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Page Cache&lt;br /&gt;
Double Page Size&lt;br /&gt;
Preempt&lt;/p&gt;
&lt;p&gt;The bug happens when clearing the inode in the exit&lt;br /&gt;
path. The fragment have the ToBeFreed bit set and also&lt;br /&gt;
an null counter.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RAMFs won't work with compressed cache</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/80/" rel="alternate"/><published>2002-07-26T21:08:46Z</published><updated>2002-07-26T21:08:46Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.net58fb4931be91eda599ad5dc3079fc521ff14132b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;RAMFS will not work properly with compressed cache&lt;br /&gt;
since pages from this filesystem might end up being&lt;br /&gt;
freed even if they have not made their way to the disk.&lt;br /&gt;
In this case, of course there is no disk, but since we&lt;br /&gt;
don't check if it has been written (what will never&lt;br /&gt;
happen to RAMFS), pages from this FS will be freed anyway.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Freeze when page cache is enabled</title><link href="https://sourceforge.net/p/linuxcompressed/bugs/79/" rel="alternate"/><published>2002-07-26T11:28:28Z</published><updated>2002-07-26T11:28:28Z</updated><author><name>Rodrigo De Castro</name><uri>https://sourceforge.net/u/rcastro/</uri></author><id>https://sourceforge.net340664459209fa7e71439685364c3de1e756f5ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When such a test like fillmem, mmap001 and dbench are&lt;br /&gt;
run many times concurrently, the system freezes. That&lt;br /&gt;
only happens when page cache support is enabled (it&lt;br /&gt;
doesn't matter if on demand resizing or double page&lt;br /&gt;
size are enabled).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>