Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5947105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:55:03+00:00 2026-05-22T16:55:03+00:00

Prior to the Linux 2.6 kernel, struct task_struct was present at the end of

  • 0

Prior to the Linux 2.6 kernel, struct task_struct was present at the end of the kernel stack of each process. There was no thread_info struct concept. But in Linux 2.6 kernel, instead of task_struct being placed at the end of the kernel stack for the process, the thread_info struct is placed at the end. This thread_info struct contains a pointer to the task_struct structure.

What was the need for thread_info structure to be introduced ?. We could have accessed the task_struct structure using the stack pointer directly if task_struct was placed at the end of the kernel stack of the process.

In 2.6 Kernel, task_struct is dynamically allocated using slab_allocator. Prior to 2.6 Kernel, was it statically allocated?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:55:03+00:00Added an answer on May 22, 2026 at 4:55 pm

    FrankH, he is looking (out of pure interest as I am, I suspect) for a reason for this change. This if what I’ve found with my l33t google skills. A bit more info behind the link:

    “task_struct is huge. it’s around 1,7KB on a 32 bit machine. on the
    other hand, you can easily see that thread_info is much slimmer.

    kernel stack is either 4 or 8KB, and either way a 1.7KB is pretty
    much, so storing a slimmer struct, that points to task_struct,
    immediately saves a lot of stack space and is a scalable solution.”

    (c) http://www.spinics.net/lists/newbies/msg22263.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very much interested in linux kernel development. But I have no prior knowledge
I wanted to modify the linux kernel code that dynamically changes the process priority.
I have prior experience in build a automatic build process for .NET & Delphi
Surely there is a way to store a date value prior than 1-1-1900 in
The following code does not work correctly on Windows (but does on Linux): sock
I noticed prior to posting this question that there have been similar questions posted
We have a process that runs prior to our nightly builds. If the process
Apple suggests that prior to submitting to the Mac application store, the installation process
I'm in the process of porting a large C++ application from Linux (gcc) to
Prior to C# generics, everyone would code collections for their business objects by creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.