public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David Wang" <00107082@163.com>
To: "Suren Baghdasaryan" <surenb@google.com>
Cc: kent.overstreet@linux.dev, linux-kernel@vger.kernel.org
Subject: Re: Abnormal values show up in /proc/allocinfo
Date: Mon, 25 Nov 2024 18:09:59 +0800 (CST)	[thread overview]
Message-ID: <70bad55f.b656.19362cca6ee.Coremail.00107082@163.com> (raw)
In-Reply-To: <CAJuCfpHviS-pw=2=BNTxp1TnphjuiqWGgZnq84EHvbz08iQ6eg@mail.gmail.com>


Hi, 

Some update

I reproduce the abnormal values of "func:compaction_alloc" today, just once. But I have not found a deterministic procedure yet.
Seems to me, it happens when kcompactd starts to work

    ret_from_fork(100.000% 57/57)
        kthread(100.000% 57/57)
            kcompactd(100.000% 57/57)
                compact_node(100.000% 57/57)
                    compact_zone(100.000% 57/57)
                        migrate_pages(100.000% 57/57)
                            migrate_pages_batch(100.000% 57/57)
                                compaction_alloc(100.000% 57/57)


Maybe, kcompactd mess up information needed by memory tracking? Just a wild guess.
And those negative signed values, and underflowed unsigned values could also be the side-effect of memory compaction.
A wilder guess....



FYI
David




At 2024-11-25 08:35:54, "Suren Baghdasaryan" <surenb@google.com> wrote:
>On Sat, Nov 23, 2024 at 11:43 PM David Wang <00107082@163.com> wrote:
>>
>> Hi,
>>
>> I am running 6.12.0 for a week, and today I notice several strange
>> items in /proc/allocinfo:
>>
>>        -4096 18446744073709551615 mm/filemap.c:3787 func:do_read_cache_folio
>>  -1946730496 18446744073709076340 mm/filemap.c:1952 func:__filemap_get_folio
>>   -903294976 18446744073709331085 mm/readahead.c:263 func:page_cache_ra_unbounded
>>   -353054720 18446744073709465421 mm/shmem.c:1769 func:shmem_alloc_folio
>>  10547565210        0 mm/compaction.c:1880 func:compaction_alloc
>>   -156487680 18446744073709513411 mm/memory.c:1064 func:folio_prealloc
>>  -2422685696 18446744073708960140 mm/memory.c:1062 func:folio_prealloc
>>  -2332479488 18446744073708982163 fs/btrfs/extent_io.c:635 [btrfs] func:btrfs_alloc_page_array
>>
>> some values are way too large, seems like corrupted/uninitialized, and values for compaction_alloc
>> are inconsistent: non-zero size with zero count.
>>
>> I do not know when those data became this strange, and I have not reboot my system yet.
>> Do you guys need extra information before I reboot my system and started to try reproducing?
>
>Hi David,
>Thanks for reporting. Can you share your .config file? Also, do you
>see these abnormal values shortly after boot or does it take time for
>them to get into abnormal state?
>I'll take a look on Monday and see if there is an obvious issue and if
>I can reproduce this.
>Thanks,
>Suren.
>
>>
>>
>> Thanks
>> David
>>
>>
>>
>>

  parent reply	other threads:[~2024-11-25 10:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-24  7:43 Abnormal values show up in /proc/allocinfo David Wang
2024-11-25  0:35 ` Suren Baghdasaryan
2024-11-25  1:01   ` David Wang
2024-11-25 10:09   ` David Wang [this message]
2024-11-25 17:31     ` Suren Baghdasaryan
2024-11-25 20:31       ` Suren Baghdasaryan
2024-11-26  1:14         ` David Wang
2024-11-26  7:16           ` David Wang
2024-11-26 17:10             ` Suren Baghdasaryan
2024-11-27  9:44               ` David Wang
2024-11-28  8:34                 ` David Wang
2024-11-28 18:46                   ` Suren Baghdasaryan
2024-11-28 19:58                     ` Suren Baghdasaryan

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=70bad55f.b656.19362cca6ee.Coremail.00107082@163.com \
    --to=00107082@163.com \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=surenb@google.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox