Skip to content

TASK6: Dynamic memory time tests#111

Open
d-serj wants to merge 6 commits intoKernel-GL-HRK:Sergey.Dubynafrom
d-serj:06_memory
Open

TASK6: Dynamic memory time tests#111
d-serj wants to merge 6 commits intoKernel-GL-HRK:Sergey.Dubynafrom
d-serj:06_memory

Conversation

@d-serj
Copy link

@d-serj d-serj commented Dec 9, 2021

  1. Userspace program to test and measure the time of allocation/freeing for functions: malloc, calloc, alloca.
  2. Kernel module to measure the time of allocation/freeing for functions: kmalloc, kzmalloc, vmalloc, get_free_pages.

Oleksandr Posukhov and others added 5 commits November 23, 2021 20:23
Add home task for lection Basic Data structures

Signed-off-by: Oleksandr Posukhov <oleksandr.posukhov@globallogic.com>
Add descriptions of tasks for lesson 5.

Signed-off-by: Yevgen Kovalyov <ekovalyov@gmail.com>
Signed-off-by: d-serj <serj.dub1na@gmail.com>
…locations

Signed-off-by: d-serj <serj.dub1na@gmail.com>
Signed-off-by: d-serj <serj.dub1na@gmail.com>
@d-serj
Copy link
Author

d-serj commented Jan 28, 2022

kmemtime.c kernel module was checked by checkpatch.pl.
checkpatch.pl output:

total: 0 errors, 0 warnings, 179 lines checked

kmemtime.c has no obvious style problems and is ready for submission.

#include <asm/page.h>

/* Max n for 2^n to allocate the buffer */
#define KMEMTIME_TESTS_MAX_N 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to allocate memory up to allocation error?

@ekovalyov ekovalyov added Change requested change requested and removed Ready for review labels Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Change requested change requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants