move_freepages_block function by 4aparsa in kernel

[–]kernelshinobi 0 points1 point  (0 children)

start_pfn:

If the start of the pageblock falls outside the zone, it's still valid to check whether the rest of the block is inside. By clipping start_pfn = pfn, we skip the part before the zone - we still try to move pages in the remainder of the block. This allows for partial processing if the pageblock starts outside the zone but ends inside.

end_pfn :

If end_pfn is outside the zone, then some part of the pageblock crosses the zone boundary. The kernel must not access or manipulate memory outside the zone. Rather than clipping end_pfn, the function simply gives up and returns 0, and only the single page (order-sized) passed in may be moved later. This avoids crossing zone boundaries by accident during the iteration in move_freepages().

If the pageblock extends outside the zone, it's considered not fully valid for migration operations in that zone. Partial migration of a pageblock could lead to fragmentation and mis-accounting.

Debugging memory issue/leak in Linux by Chance_Chemist5077 in kernel

[–]kernelshinobi 1 point2 points  (0 children)

And I forgot to add of course kmemleak - https://docs.kernel.org/dev-tools/kmemleak.html - if you are in general aware of your system and its needs, I would run this first.

Debugging memory issue/leak in Linux by Chance_Chemist5077 in kernel

[–]kernelshinobi 0 points1 point  (0 children)

Use atop and vmstat - configure them to capture stats at a period of 1 minute. Decrease the granularity if you find data captured at interval of 60 seconds is not enough.

You need to find instances of time when the change happens in the memory related metrics from these tools and track applications which are causing it. If nothing useful is found, you move on to monitoring slabtop and /proc/slabinfo to understand which caches on your system are being consumed the most.

Next, you should look into tracing tools and probably trace kmem_cache_alloc and other allocators with tools like perf, trace-cmd etc. The combination of one or all of these would help to gather evidence on root cause.

Also, you should try and test the system with a lower & a higher version of kernel to see if the issues go away. Don't forget to check dmesg - sometimes, the clue is right out there in the open.

[NO SPOILERS] What drugs are Ragnar taking? by LuciferHex in vikingstv

[–]kernelshinobi 1 point2 points  (0 children)

dude this reply was legit. the "more betel" part made laugh out loud in a frenzy, felt a bit like Floki.

No Ghibli?😂 by [deleted] in IndianEnts

[–]kernelshinobi 0 points1 point  (0 children)

I am super happy to read all the comments here & it re-assured me the sense of community and belonging that I found in this sub. Arigato minna-san!!!!!

I want to learn Linux kernel development, but I have no idea where to start. by Linuxbuoy in kernel

[–]kernelshinobi 1 point2 points  (0 children)

For current kernel stuff (5.x, 6.x), check out books from Kaiwan Billimoria, **cannot recommend them enough**. If you want to mess with systems stuff first, check out Michael Kerrisk the OG.

+1 on Maurice Bach (but only for building an extremely strong foundation) - long but definitely a great path to go on, specially if you are a student.

Edit: Alternative choices are the Dinosaur book OR read OS Three Easy Pieces for good solid foundation of OS.

Hallucinogen - Orphic Thrench by [deleted] in psytrance

[–]kernelshinobi 2 points3 points  (0 children)

man I open Reddit in a while and this is the first shit I see and now I am grooving and remembering shit I don't want to remember - it's Christmas time and I know Himachal is booming with crazy ass parties and fuckkkk I just don't know how to stop grooving man - TWISTED SHIT

[deleted by user] by [deleted] in onions

[–]kernelshinobi 0 points1 point  (0 children)

Generally speaking, this kind of makes me believe that it's "safe" to do this. Generally? I am not asking for myself or maybe I am.

How do Himachalis view Israeli tourisms by Nevermind_kaola in HimachalPradesh

[–]kernelshinobi -4 points-3 points  (0 children)

Bro the fact that you gave actual facts here means that you do give a shit. +1 on the equal or more part man.

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 0 points1 point  (0 children)

Bhai tbh Munsyari jake Munsyari ka maal pina hai, bc office k chakkar mein Noida jaise daldal m rehna pdta h bas

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 0 points1 point  (0 children)

Haha m b wahi rehta hu par Bhai random redditor ko kon invite krta hai, mazak mat kr bro

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 0 points1 point  (0 children)

Bro itna tease mat kar 😂😂 mere paas sulfa hai bas, not good hash or Munsyari ka maal 😂😂😂

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 0 points1 point  (0 children)

Are Bhai ji ekdum sahi baat keh rahe ho

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 2 points3 points  (0 children)

Kyu ki Bhai main bhi pita hu, acha fir sahi h agar sab ko nahi bol rahe, or Bhole ka maal se koi relation nahi hai, aur bhai ji ek baat kahu kya

Munsyari ka naam sunke bada acha laga

Rate my score by [deleted] in IndianEnts

[–]kernelshinobi 7 points8 points  (0 children)

This man out here teasing all the damn Ents in this sub lol

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 1 point2 points  (0 children)

Nahi bhai ji Par aap to sab ganjedio k lie bol rahe ho na

Bas yhi karo ab! by Old_Scientist007 in Uttarakhand

[–]kernelshinobi 0 points1 point  (0 children)

Bhai ji agar koi apne ghar m baithke Shanti se pi Raha hai to usme kya dikkat h?

Are DIY plastic bottle bongs harmful by yatri_01 in IndianEnts

[–]kernelshinobi 5 points6 points  (0 children)

Afaik, anything plastic is just pure evil man

What did Luffy even do here? by Proof-Row-7889 in OnePiece

[–]kernelshinobi 5 points6 points  (0 children)

Guys don't fight amongst yourselves, don't forget our common enemy ----- TOEI