Comments (6)
This could be related to Issue #42, as this only occurs when backing swap is
used, but
I get a kernel BUG report in syslog, and this was not reported in #42.
Original comment by [email protected]
on 2 Nov 2009 at 10:37
from compcache.
Are you sure you have pulled latest hg version? for me, hg log shows:
[ngupta@vflare compcache]$ hg log | head
changeset: 91:65a5cd123d0e
tag: tip
user: Nitin Gupta <[email protected]>
date: Thu Oct 15 04:36:55 2009 +0530
summary: Correct permissions for code files
changeset: 90:ce3d45b1cb38
parent: 83:abafa311d458
user: ngupta@vmFedora11
date: Thu Oct 15 04:24:33 2009 +0530
also make sure you are in "default" branch.
---
btw, I could not yet understand how it could happen on compcache-0.6 either. I
tried
same thing with latest hg version on Fedora-x64 but could not repro the issue.
I will
find some 32-bit machine and maybe I will be luckier.
Maybe on 32-bit system, disksize value is overflowing. Is your backing swap
device
>=4G? Also, how much RAM do you have? Anyway, I should be changing it to 64-bit.
Original comment by [email protected]
on 2 Nov 2009 at 1:55
from compcache.
I found the trigger of the bug. /dev/sda2 isn't a swap partition, it is an
"Extended"
partition which contains my real swap partition (/dev/sda5). swapon handles
this more
gracefully, giving the following error:
swapon: /dev/sda2: read swap header failed: Invalid argument
presumably rzscontrol should also handle this more gracefully.
If this helps "cat /dev/sda2 | wc -c" reports that /dev/sda2 is 1024 characters
long.
FYI, with regards to hg, I just followed the instruction at
http://code.google.com/p/compcache/source/checkout
That is, I ran
hg clone https://compcache.googlecode.com/hg/ compcache
Original comment by [email protected]
on 2 Nov 2009 at 3:02
from compcache.
> That is, I ran
> hg clone https://compcache.googlecode.com/hg/ compcache
To stay uptodate you need to run 'hg pull' to get latest changes.
---
In general, if you give non-swap partition as backing swap, ramzswap does not
cause a
BUG() and you will get a graceful failure from swapon /dev/ramzswap0. However,
in
this case -- i.e. with extended partition -- we get backing swap of zero
(i_size_read() returns 0). This fails ramzswap logic. I will fix this case.
Thanks,
Nitin
Original comment by [email protected]
on 3 Nov 2009 at 1:54
from compcache.
"hg pull" reports no new changes.
Original comment by [email protected]
on 3 Nov 2009 at 3:24
from compcache.
Fixed in repository. hg pull should now get you the fix. You should now get an
error
in kernel log when you try to do --init with extended partition as backing
swap. Thanks.
Nitin
Original comment by [email protected]
on 12 Nov 2009 at 1:40
- Changed state: Fixed
from compcache.
Related Issues (20)
- zcache spurs Kernel warnings: HOT 5
- zram.num_devices parameter ignored in kernel 3.2.x HOT 4
- Zram Block IO error Linux 3.6 HOT 20
- Zram stats script reports wrong original size HOT 1
- zram gone from kernel 3.5.5 HOT 2
- kernel error writing on zram HOT 1
- Please add a summary on zram_stats
- System crash with swap on a zram device on a 32 bits system with kernel >= 3.6 HOT 3
- ramzswapd stats not getting updated in kernel 2.6.10
- Changing disk size on linux 3.8 broken.
- crash during zram-init if low on memory / kernel 3.8.2
- zram crash during restart on kernel 3.8.3
- ZRAM + Qemu + KSM = system hang HOT 1
- mkswap with 16KB page size fails HOT 1
- Failed to load zram kernel module on kernel 3.0.0-8-generic HOT 2
- Allow specifying numdevices during kernel config and as boot parameter and add the discard patch to the kernel HOT 3
- kernel BUG at /usr/src/linux-source-2.6.38/drivers/staging/zram/xvmalloc.c:433! HOT 1
- Patch for /sub-projects/scripts/git-diffc HOT 1
- discard/trim support ? HOT 3
- Snappy compression support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compcache.