mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

0.6 fails to build for 2.6.32_rc6 #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile with 2.6.32_rc6
2. Fails to build with errors
3.

What version of the product are you using? On what operating system?
0.6

Please provide any additional information below.

  CC [M] 
/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6/ramzswap.o   

/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6/ramzswap.c: In
function 'ramzswap_make_request':                                     
/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6/ramzswap.c:926: 
error:
implicit declaration of function 'bio_discard'                
/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6/ramzswap.c: In
function 'ramzswap_ioctl_init_device':                                
/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6/ramzswap.c:1027:
error: implicit declaration of function 'blk_queue_set_discard'     
make[2]: ***
[/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6/ramzswap.o]
Error 1                                                    
make[1]: ***
[_module_/var/tmp/portage/sys-kernel/compcache-0.6/work/compcache-0.6]
Error 2                                                       
make[1]: Leaving directory `/usr/src/linux-2.6.32-rc6'                    

make: *** [all] Error 2

Original issue reported on code.google.com by dev...@gmail.com on 12 Nov 2009 at 12:44

GoogleCodeExporter commented 9 years ago
There is no bio_discard or blk_queue_set_discard in 2.6.32-rc6 source

Original comment by dev...@gmail.com on 12 Nov 2009 at 1:22

GoogleCodeExporter commented 9 years ago
With the introduction for "swap notify" patch, we no longer require the 
blk_discard
thing. In current state for repository, this blk_discard stuff is already 
removed.
However, I have not yet integrated changes needed to support swap notify 
feature.
Without this, you can get negative performance impact.

I will update this Issue once this integration is done.

Original comment by nitingupta910@gmail.com on 12 Nov 2009 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by nitingupta910@gmail.com on 12 Nov 2009 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by nitingupta910@gmail.com on 12 Nov 2009 at 1:55

GoogleCodeExporter commented 9 years ago
Is compcache going to be in 2.6.32?

Original comment by dev...@gmail.com on 13 Nov 2009 at 6:05

GoogleCodeExporter commented 9 years ago
No. Its currently in linux-next and is expected (almost sure) to be included in 
2.6.33.

Original comment by nitingupta910@gmail.com on 13 Nov 2009 at 6:43

GoogleCodeExporter commented 9 years ago
Its now in mainline which should compile correctly.

Original comment by nitingupta910@gmail.com on 12 Dec 2009 at 1:54

GoogleCodeExporter commented 9 years ago
Its not in 2.6.33-rc1. Or I did no find the config option?

Original comment by dev...@gmail.com on 19 Dec 2009 at 8:23

GoogleCodeExporter commented 9 years ago
> Its not in 2.6.33-rc1. Or I did no find the config option?

Device Drivers --> Staging drivers --> Compressed in-memory swap device 
(ramzswap)

Original comment by nitingupta910@gmail.com on 19 Dec 2009 at 8:29

GoogleCodeExporter commented 9 years ago
ahhh...ok.

Now, another issue: I modeprobe'd the module in 2.6.33-rc1 kernel and tried to
'swapon /dev/ramzswap0' but it cribs saying that it can't find swap signature 
on it.
Do you know if its fixed in a version greater than the one in 2.6.33-rc1?

Original comment by dev...@gmail.com on 19 Dec 2009 at 5:04

GoogleCodeExporter commented 9 years ago
after modprobe, you need to do:
rzscontrol /dev/ramzswap0 --init
and then do swapon.

you should use rzscontrol tool directly from repository instead of the one 
included
with compcache-0.6.

---
swap notify patch is almost ready for 2.6.33-rc1 and I will upload it soon. 
Please
test with this notify support if possible.

Original comment by nitingupta910@gmail.com on 20 Dec 2009 at 3:08

GoogleCodeExporter commented 9 years ago
Is the swap notify patch in 2.6.33-rc2? where can I download it? Is it safe to 
apply
or is it alpha/beta?

merry christmas to you and your family Nitin!

Original comment by dev...@gmail.com on 25 Dec 2009 at 7:57

GoogleCodeExporter commented 9 years ago
> Is the swap notify patch in 2.6.33-rc2? where can I download it? Is it safe 
to apply
or is it alpha/beta?

swap notify patch is not yet in mainline. Anyway, I will soon upload patch for
upcoming 2.6.33 containing notify support and some bugfixes.

> merry christmas to you and your family Nitin!
Same for you and Happy new year!

Original comment by nitingupta910@gmail.com on 26 Dec 2009 at 1:03