LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "werner" <w.landgraf@ru.ru>
To: Andrea Arcangeli <aarcange@redhat.com>,
	akpm@linux-foundation.org, hannes@cmpxchg.org,
	idryomov@gmail.com, linux-kernel@vger.kernel.org,
	torvalds@linux-foundation.org,
	Minchan Kim <minchan.kim@gmail.com>,
	Johannes Weiner <jweiner@redhat.com>
Subject: Re: 2.6.38-rc1 and -rc2 problems with khugepaged
Date: Sun, 23 Jan 2011 05:04:48 -0400	[thread overview]
Message-ID: <web-444928768@zbackend1.aha.ru> (raw)
In-Reply-To: <20110123041801.GY9506@random.random>

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

I inform that with thepatch below, my computer starts and 
works normally, with khugepaged enabled.

http://www.sys-linux.yi.org/info.php

dmesg enclosed if important for something, configure the 
same as before with khugepage always enabled.

In my last mail, I sent enclosed the output of the kernel 
compilation, with several advise messages. Pls check that, 
and correct the subroutines where necessary.

wl

=============================================
On Sun, 23 Jan 2011 05:18:01 +0100
  Andrea Arcangeli <aarcange@redhat.com> wrote:
> Hi Werner,
> 
> On Sat, Jan 22, 2011 at 10:56:16PM -0400, werner wrote:
>> -rc2 hang up itself, still
>> Again compiled with khugepaged enabled, so I suppose 
>>thats 
>> the reason, still.
>> First, the initialisation of KDE stops,  if then 
>>switching 
>> with CTRL-ALT-F1 to the text system, one can log in, but 
>> soon after comes the kernel error message, and it sticks 
>> also on the text screen, going nothing else, only press 
>> the reboot button ...
> 
> You need to apply this below patch on top of rc2 to be 
>stable on
> x86_32 with PARAVIRT=y and HIGHMEM64G=n. It's in -mm 
>already. Can you
> confirm that this fixes your problem? Thanks.
> 
> ====
> Subject: thp: fix PARAVIRT x86 32bit noPAE
> 
>From: Andrea Arcangeli <aarcange@redhat.com>
> 
> This fixes TRANSPARENT_HUGEPAGE=y with PARAVIRT=y and 
>HIGHMEM64=n.
> 
> The #ifdef that this patch removes was erratically 
>introduced to fix a build
> error for noPAE (where pmd.pmd doesn't exist). So then 
>the kernel built but it
> failed at runtime because set_pmd_at was a noop. This 
>will correct it by
> enabling set_pmd_at for noPAE mode too.
> 
> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
> ---
> 
> diff --git a/arch/x86/include/asm/paravirt.h 
>b/arch/x86/include/asm/paravirt.h
> index 2071a8b..ebbc4d8 100644
> --- a/arch/x86/include/asm/paravirt.h
> +++ b/arch/x86/include/asm/paravirt.h
> @@ -558,13 +558,12 @@ static inline void 
>set_pte_at(struct mm_struct *mm, unsigned long addr,
> static inline void set_pmd_at(struct mm_struct *mm, 
>unsigned long addr,
> 			      pmd_t *pmdp, pmd_t pmd)
> {
> -#if PAGETABLE_LEVELS >= 3
> 	if (sizeof(pmdval_t) > sizeof(long))
> 		/* 5 arg words */
> 		pv_mmu_ops.set_pmd_at(mm, addr, pmdp, pmd);
> 	else
> -		PVOP_VCALL4(pv_mmu_ops.set_pmd_at, mm, addr, pmdp, 
>pmd.pmd);
> -#endif
> +		PVOP_VCALL4(pv_mmu_ops.set_pmd_at, mm, addr, pmdp,
> +			    native_pmd_val(pmd));
> }
> #endif
> 
> 
> 

"werner" <w.landgraf@ru.ru>
---
Professional hosting for everyone - http://www.host.ru

[-- Attachment #2: dmesg.bz2 --]
[-- Type: application/octet-stream, Size: 15459 bytes --]

  reply	other threads:[~2011-01-23  9:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23  2:56 werner
2011-01-23  4:18 ` Andrea Arcangeli
2011-01-23  9:04   ` werner [this message]
2011-01-23  3:10 werner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=web-444928768@zbackend1.aha.ru \
    --to=w.landgraf@ru.ru \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=idryomov@gmail.com \
    --cc=jweiner@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minchan.kim@gmail.com \
    --cc=torvalds@linux-foundation.org \
    --subject='Re: 2.6.38-rc1 and -rc2 problems with khugepaged' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).