9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] other kernel bug
@ 2014-06-05  1:23 Yoann Padioleau
  2014-06-05  1:56 ` cinap_lenrek
  0 siblings, 1 reply; 10+ messages in thread
From: Yoann Padioleau @ 2014-06-05  1:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,

I think I've found another one :)

in confinit() we do:

    kmem -= conf.upages*sizeof(Page)
            + conf.nproc*sizeof(Proc)
            + conf.nimage*sizeof(KImage)
            + conf.nswap
            + conf.nswppo*sizeof(Page); // <- BUG

but in swapinit we actually do
    iolist = xalloc(conf.nswppo*sizeof(Page*));

so in confinit() it should be conf.nswppo*sizeof(Page*)





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-05  1:23 [9fans] other kernel bug Yoann Padioleau
@ 2014-06-05  1:56 ` cinap_lenrek
  2014-06-06  3:59   ` Bruce Ellis
  0 siblings, 1 reply; 10+ messages in thread
From: cinap_lenrek @ 2014-06-05  1:56 UTC (permalink / raw)
  To: 9fans

correct.

--
cinap



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-05  1:56 ` cinap_lenrek
@ 2014-06-06  3:59   ` Bruce Ellis
  2014-06-06  4:15     ` cinap_lenrek
  0 siblings, 1 reply; 10+ messages in thread
From: Bruce Ellis @ 2014-06-06  3:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

Could this solve the 'why is swap so crappy?'
On 05/06/2014 11:58 AM, <cinap_lenrek@felloff.net> wrote:

> correct.
>
> --
> cinap
>
>

[-- Attachment #2: Type: text/html, Size: 400 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-06  3:59   ` Bruce Ellis
@ 2014-06-06  4:15     ` cinap_lenrek
  2014-06-10  1:00       ` Yoann Padioleau
  0 siblings, 1 reply; 10+ messages in thread
From: cinap_lenrek @ 2014-06-06  4:15 UTC (permalink / raw)
  To: 9fans

no. it just makes the kernels malloc arena limit a bit smaller than
it should be.

--
cinap



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-06  4:15     ` cinap_lenrek
@ 2014-06-10  1:00       ` Yoann Padioleau
  2014-06-10  1:07         ` erik quanstrom
                           ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Yoann Padioleau @ 2014-06-10  1:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi cinap,

Would it be possible to change a bit the 9front mercurial repository so that
it can work on MacOS filesystem. 

I get some:
abort: case-folding collision between sys/lib/troff/font/devutf/charlib/lH and sys/lib/troff/font/devutf/charlib/LH

when hg pull; hg update.

I can understand the hate for non plan9 OS but it would be nice :)

On Jun 5, 2014, at 9:15 PM, cinap_lenrek@felloff.net wrote:

> no. it just makes the kernels malloc arena limit a bit smaller than
> it should be.
> 
> --
> cinap
> 




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-10  1:00       ` Yoann Padioleau
@ 2014-06-10  1:07         ` erik quanstrom
  2014-06-10  1:20           ` Ethan Grammatikidis
  2014-06-10  4:35         ` Kurt H Maier
                           ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: erik quanstrom @ 2014-06-10  1:07 UTC (permalink / raw)
  To: 9fans

On Mon Jun  9 21:02:01 EDT 2014, pad@fb.com wrote:
> Hi cinap,
>
> Would it be possible to change a bit the 9front mercurial repository so that
> it can work on MacOS filesystem.
>
> I get some:
> abort: case-folding collision between sys/lib/troff/font/devutf/charlib/lH and sys/lib/troff/font/devutf/charlib/LH

we tried that with the original nix+googlecode gang, and it
was trouble.  Kill vs. kill, etc.

a lot of time was spent trying to overcome the shortcomings of
unrelated systems.  i didn't think it was a good use of resources.

i think it would be easier to set up your file system to be case
sensitive.

- erik



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-10  1:07         ` erik quanstrom
@ 2014-06-10  1:20           ` Ethan Grammatikidis
  0 siblings, 0 replies; 10+ messages in thread
From: Ethan Grammatikidis @ 2014-06-10  1:20 UTC (permalink / raw)
  To: 9fans

On Tue, Jun 10, 2014, at 02:07 AM, erik quanstrom wrote:
> On Mon Jun  9 21:02:01 EDT 2014, pad@fb.com wrote:
> > Hi cinap,
> >
> > Would it be possible to change a bit the 9front mercurial repository so that
> > it can work on MacOS filesystem.
> >
> > I get some:
> > abort: case-folding collision between sys/lib/troff/font/devutf/charlib/lH and sys/lib/troff/font/devutf/charlib/LH
>
> we tried that with the original nix+googlecode gang, and it
> was trouble.  Kill vs. kill, etc.
>
> a lot of time was spent trying to overcome the shortcomings of
> unrelated systems.  i didn't think it was a good use of resources.
>
> i think it would be easier to set up your file system to be case
> sensitive.

*nods* i have to second this. you can set partitions case-sensitive in
mac os x. it's been a while, but i think that's what i did with my user
data partition. i heard if you set the root case-sensitive it breaks
adobe products but not much else.

--
You can't have your fun and eat it too.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-10  1:00       ` Yoann Padioleau
  2014-06-10  1:07         ` erik quanstrom
@ 2014-06-10  4:35         ` Kurt H Maier
  2014-06-10  4:46         ` cinap_lenrek
  2014-06-10  5:14         ` cinap_lenrek
  3 siblings, 0 replies; 10+ messages in thread
From: Kurt H Maier @ 2014-06-10  4:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Quoting Yoann Padioleau <pad@fb.com>:

> Hi cinap,
>
> Would it be possible to change a bit the 9front mercurial repository so that
> it can work on MacOS filesystem.
>
> I get some:
> abort: case-folding collision between
> sys/lib/troff/font/devutf/charlib/lH and
> sys/lib/troff/font/devutf/charlib/LH
>
> when hg pull; hg update.
>
> I can understand the hate for non plan9 OS but it would be nice :)
>


your operating system is broken.  fix that.

khm




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-10  1:00       ` Yoann Padioleau
  2014-06-10  1:07         ` erik quanstrom
  2014-06-10  4:35         ` Kurt H Maier
@ 2014-06-10  4:46         ` cinap_lenrek
  2014-06-10  5:14         ` cinap_lenrek
  3 siblings, 0 replies; 10+ messages in thread
From: cinap_lenrek @ 2014-06-10  4:46 UTC (permalink / raw)
  To: 9fans

thats a good one. this is not a problem with the repository. this
is a problem with this troff compontent assuming a case sensitive
filesystem. i cant fix it without changing troff. also, this isnt
the only case. i can't for example check out on windows because
we have /bin/aux and aux is a special name on dos.

the repository files itself use a mangeling scheme. but not whats
checked out for obvious reasons.

making all files in plan9 comply to all the filesystem restrictions
(what about unicode?) of all foreign operating systems out there
seems futile.

--
cinap



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] other kernel bug
  2014-06-10  1:00       ` Yoann Padioleau
                           ` (2 preceding siblings ...)
  2014-06-10  4:46         ` cinap_lenrek
@ 2014-06-10  5:14         ` cinap_lenrek
  3 siblings, 0 replies; 10+ messages in thread
From: cinap_lenrek @ 2014-06-10  5:14 UTC (permalink / raw)
  To: 9fans

maybe the plan9-theme-for-unix projects have a solution?

if you have a patch that isnt too disruptive (removing troff
doesnt count) i'd be willing to commit it but i'm not undergoing
the work to puzzle arround with macosx problems.

--
cinap



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-10  5:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05  1:23 [9fans] other kernel bug Yoann Padioleau
2014-06-05  1:56 ` cinap_lenrek
2014-06-06  3:59   ` Bruce Ellis
2014-06-06  4:15     ` cinap_lenrek
2014-06-10  1:00       ` Yoann Padioleau
2014-06-10  1:07         ` erik quanstrom
2014-06-10  1:20           ` Ethan Grammatikidis
2014-06-10  4:35         ` Kurt H Maier
2014-06-10  4:46         ` cinap_lenrek
2014-06-10  5:14         ` cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).