Coder Social home page Coder Social logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
> 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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
"hg pull" reports no new changes.

Original comment by [email protected] on 3 Nov 2009 at 3:24

from compcache.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.