mm documentation
A message that is not in the archive (sent off-list or not yet received): 20180130105237.GB7201@rapoport-lnx
(forgot to CC linux-mm)
Quoted 21 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"
* Do we want to keep "Memory Management in Linux" underkernel-api.rstor maybe it's worth adding, say,mm.rst?
* What is the desired layout of the documentation, what sections we'd like to have, how the documentation should be ordered?Signature · 2 lines
Sincerely yours, Mike.
Signature · 8 lines
Sincerely yours, Mike. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 16 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 13 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"
Is this documentation anywhere close to be actually useful?
Signature · 8 lines
Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 13 lines · Michal Hocko
Quoted 12 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 9 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"Is this documentation anywhere close to be actually useful?
Some parts are documented better, some worse. For instance, bootmem and z3fold are covered not bad at all, but, say, huge_memory has no structured comments at all. Roughly half of the files in mm/ have some documentation, but I didn't yet read that all to say how much of it is actually useful.
And maybe having some skeleton for MM API in htmldocs with at least some documentation will encourage people to look at the documentation.
Quoted 4 lines
Signature · 2 lines
Michal Hocko SUSE Labs
Signature · 8 lines
Sincerely yours, Mike. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 19 lines · Mike Rapoport
Quoted 18 lines · Michal Hocko
Quoted 16 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 13 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"
Quoted 6 lines
Quoted 1 line
Is this documentation anywhere close to be actually useful?
Some parts are documented better, some worse. For instance, bootmem and z3fold are covered not bad at all, but, say,
huge_memoryhas no structured comments at all. Roughly half of the files inmm/have some documentation, but I didn't yet read that all to say how much of it is actually useful.
It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority. We are seriously lacking any highlevel one which describes the design and subsytems interaction. Well, we have missed that train years ago. It will be really hard to catch up.
Signature · 8 lines
Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 22 lines · Michal Hocko
Quoted 21 lines · Mike Rapoport
Quoted 19 lines · Michal Hocko
Quoted 16 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 13 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"Is this documentation anywhere close to be actually useful?
Quoted 8 lines
Quoted 4 lines
Some parts are documented better, some worse. For instance, bootmem and z3fold are covered not bad at all, but, say,
huge_memoryhas no structured comments at all. Roughly half of the files inmm/have some documentation, but I didn't yet read that all to say how much of it is actually useful.It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in kernel-api.rst, CMA and HMM documentation is not visible.
Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
Quoted 1 line
Well, we have missed that train years ago. It will be really hard to catch up.
At least we can try.
Quoted 4 lines
Signature · 2 lines
Michal Hocko SUSE Labs
Signature · 8 lines
Sincerely yours, Mike. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 40 lines · Mike Rapoport
Quoted 22 lines · Michal Hocko
Quoted 21 lines · Mike Rapoport
Quoted 19 lines · Michal Hocko
Quoted 16 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 13 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"Is this documentation anywhere close to be actually useful?
Quoted 8 lines
Quoted 4 lines
Some parts are documented better, some worse. For instance, bootmem and z3fold are covered not bad at all, but, say,
huge_memoryhas no structured comments at all. Roughly half of the files inmm/have some documentation, but I didn't yet read that all to say how much of it is actually useful.It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in
kernel-api.rst, CMA and HMM documentation is not visible.Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
Quoted 6 lines
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
Quoted 1 line
Well, we have missed that train years ago. It will be really hard to catch up.
At least we can try.
Hi,
I would move it all to a new mm.rst file. That would be easier to maintain and also allow parallel building.
Signature · 7 lines
~Randy -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 44 lines · Randy Dunlap
Quoted 43 lines · Mike Rapoport
Quoted 22 lines · Michal Hocko
Quoted 21 lines · Mike Rapoport
Quoted 19 lines · Michal Hocko
Quoted 16 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 13 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"Is this documentation anywhere close to be actually useful?
Quoted 8 lines
Quoted 4 lines
Some parts are documented better, some worse. For instance, bootmem and z3fold are covered not bad at all, but, say,
huge_memoryhas no structured comments at all. Roughly half of the files inmm/have some documentation, but I didn't yet read that all to say how much of it is actually useful.It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in
kernel-api.rst, CMA and HMM documentation is not visible.Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Well, we have missed that train years ago. It will be really hard to catch up.
At least we can try.
Hi,
I would move it all to a newmm.rstfile. That would be easier to maintain and also allow parallel building.
Agree. Could also be Documentation/vm/index.rst.
Quoted 3 lines
Signature · 1 line
~Randy
Signature · 8 lines
Sincerely yours, Mike. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 37 lines · Mike Rapoport
Quoted 36 lines · Michal Hocko
Quoted 33 lines · Mike Rapoport
Quoted 18 lines · Michal Hocko
Quoted 16 lines · Mike Rapoport
(forgot to CC linux-mm)
Quoted 11 lines · Mike Rapoport
Hello,
The mm kernel-doc documentation is not in a great shape.A
Some of the existing kernel-doc annotations were not reformatted during transition from dockbook to sphix. Sometimes the parameter descriptions do not match actual code. But aside these rather mechanical issues there are several points it'd like to discuss:
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
* Currently, only 14 files are linked to
kernel-api.rstunder "Memory Management in Linux" section. We have more than hundred files only in mm. Even the existing documentation is not generated when running "make htmldocs"Is this documentation anywhere close to be actually useful?
Some parts are documented better, some worse. For instance, bootmem and z3fold are covered not bad at all, but, say,
huge_memoryhas no structured comments at all. Roughly half of the files inmm/have some documentation, but I didn't yet read that all to say how much of it is actually useful.
Quoted 8 lines
Quoted 3 lines
It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.A
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in
kernel-api.rst, CMA and HMM documentation is not visible.
Documentation is also one way new people get into the project.A A Not being top priority is fine, but "far from" top priority implies not worth doing, which gives the wrong impression.
Quoted 11 lines
Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
Quoted 3 lines
Well, we have missed that train years ago. It will be really hard to catch up.
At least we can try.
How about simply insisting on adequately documenting new stuff and asking submitters to add documentation when they change something.A A The latter, at least, is fairly essential: there's nothing worse than documentation that's actively wrong. A The former is useful to reviewers. A I'm not saying this alone will ever get you to 100%, but at least it's an incremental change which isn't too burdensome and which moves the needle in the right direction.
James
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Mike Rapoport
Quoted 3 lines · Michal Hocko
It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in
kernel-api.rst, CMA and HMM documentation is not visible.
Quoted 5 lines
Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
We should be really clear what kind of documentation we're trying to create.
There are four distinct types of documentation which would be useful:
- How, when and why to use the various function calls and their parameters from the perspective of a user outside the mm/ hierarchy. Device driver authors, filesystem authors and others of their ilk.
- The overall philosophy and structure of the mm directory, what it does, why it does it, perhaps even outlines of abandoned approaches.
- What functionality the mm subsystem requires from others. For example, what does the mm rely on from the CPU architectures (and maybe it would make sense to also include services the mm layer provides to arches in this section, like setting up sparsemem).
- How to tweak the various knobs that the mm subsystem provides. Maybe this is all adequately documented elsewhere already.
Perhaps others can think of other types of documentation which would be useful. That shouldn't detract from my main point, which is that saying "Now we have mm documentation" is laudable, but not enough.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 21 lines · Matthew Wilcox
Quoted 10 lines · Mike Rapoport
Quoted 3 lines · Michal Hocko
It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in
kernel-api.rst, CMA and HMM documentation is not visible.Quoted 5 lines
Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
We should be really clear what kind of documentation we're trying to create.
There are four distinct types of documentation which would be useful:
Quoted 9 lines
- How, when and why to use the various function calls and their parameters from the perspective of a user outside the
mm/hierarchy. Device driver authors, filesystem authors and others of their ilk.
- The overall philosophy and structure of the mm directory, what it does, why it does it, perhaps even outlines of abandoned approaches.
- What functionality the mm subsystem requires from others. For example, what does the mm rely on from the CPU architectures (and maybe it would make sense to also include services the mm layer provides to arches in this section, like setting up sparsemem).
yes
Quoted 2 lines
- How to tweak the various knobs that the mm subsystem provides. Maybe this is all adequately documented elsewhere already.
This would be Documentation/sysctl/vm.txt which is one that is at least close to be complete.
Quoted 2 lines
Perhaps others can think of other types of documentation which would be useful.
- design documentation of various parts of the MM - reclaim, memory hotplug, memcg, page allocator, memory models, THP, rmap code (you name it)
Quoted 2 lines
That shouldn't detract from my main point, which is that saying "Now we have mm documentation" is laudable, but not enough.
Absolutely agreed.
Signature · 8 lines
Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 43 lines · Michal Hocko
Quoted 21 lines · Matthew Wilcox
Quoted 10 lines · Mike Rapoport
Quoted 3 lines · Michal Hocko
It is good to hear that at least something has a documentation coverage. I was asking mostly because I _think_ that the API documentation is far from the top priority.
API documentations is important for kernel developers who are not deeply involved with mm. When one develops a device driver, knowing how to allocate and free memory is essential. And, while *malloc are included in
kernel-api.rst, CMA and HMM documentation is not visible.Quoted 5 lines
Quoted 2 lines
We are seriously lacking any highlevel one which describes the design and subsytems interaction.
I should have describe it better, but by "creating a new structure for mm documentation" I've also meant adding high level description.
We should be really clear what kind of documentation we're trying to create.
There are four distinct types of documentation which would be useful:
Quoted 9 lines
- How, when and why to use the various function calls and their parameters from the perspective of a user outside the
mm/hierarchy. Device driver authors, filesystem authors and others of their ilk.
- The overall philosophy and structure of the mm directory, what it does, why it does it, perhaps even outlines of abandoned approaches.
- What functionality the mm subsystem requires from others. For example, what does the mm rely on from the CPU architectures (and maybe it would make sense to also include services the mm layer provides to arches in this section, like setting up sparsemem).yes
Quoted 2 lines
- How to tweak the various knobs that the mm subsystem provides. Maybe this is all adequately documented elsewhere already.
This would be
Documentation/sysctl/vm.txtwhich is one that is at least close to be complete.Quoted 2 lines
Perhaps others can think of other types of documentation which would be useful.
Quoted 8 lines
- design documentation of various parts of the MM - reclaim, memory hotplug, memcg, page allocator, memory models, THP, rmap code (you name it)
Quoted 2 lines
That shouldn't detract from my main point, which is that saying "Now we have mm documentation" is laudable, but not enough.
Absolutely agreed.
I don't think anybody is saying "we have mm documentation", at least in the sense "mm is well documented".
One of my points was that bringing some order to the existing bits of the documentation is an important step forward and it does not contradict necessity to add documentation you and Matthew described here.
Quoted 10 lines
Signature · 8 lines
Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Signature · 8 lines
Sincerely yours, Mike. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>