All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC: enhanced memory protection support
@ 2012-04-30 15:26 Bean
  2012-04-30 17:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2012-04-30 18:52 ` Seth Goldberg
  0 siblings, 2 replies; 7+ messages in thread
From: Bean @ 2012-04-30 15:26 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

While testing network function in efi mode, I've found several memory
leak related to fragmentation, but there is still some memory problem
that's very tricky to locate. For example, you can run testspeed on a
large file several times in a row and it could show the memory error.
Since network condition are very difficult to reproduce, I have to
look at the source of this issue, memory allocation. Currently it has
mm_debug option that could print out file and line number of each
memory call, but it's quite useless since we can't find the relevant
informaton with full screen of prints.

Here are some of my ideas for enhanced memory protection support:

1, when we allocate memory, we append some information at the end of
the buffer, which include filename, lineno of caller, and tag to
indicate what is used for and some padding to detect memory overwrite
problem.

2. add a command to print the current memory list with extended
information, this can be used to find memory leaks.

3. it's also a good idea to run the memory check in automated test to
locate potential issue.

-- 
Best wishes
Bean


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-01 12:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-30 15:26 RFC: enhanced memory protection support Bean
2012-04-30 17:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-30 19:55   ` Bean
2012-05-01 10:30     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-05-01 10:29   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-05-01 12:08     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-30 18:52 ` Seth Goldberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.