More intense thread testing
This commit is contained in:
parent
8aec2a8ce3
commit
b7bf1fb1a0
@ -17,14 +17,17 @@
|
|||||||
|
|
||||||
#include <aos/aos.h>
|
#include <aos/aos.h>
|
||||||
#include <aos/paging.h>
|
#include <aos/paging.h>
|
||||||
|
#include <aos/deferred.h>
|
||||||
|
|
||||||
#define NUM_SMALL_BUFFERS 128
|
#define NUM_SMALL_BUFFERS 128
|
||||||
#define NUM_THREADS 16
|
#define NUM_THREADS 512
|
||||||
|
|
||||||
static struct thread* threads[NUM_THREADS];
|
static struct thread* threads[NUM_THREADS];
|
||||||
|
|
||||||
__attribute__((__used__))
|
__attribute__((__used__))
|
||||||
static int test_large_buffer(void * __args) {
|
static int test_large_buffer(void * __args) {
|
||||||
|
barrelfish_usleep(rand() % 50 * 100000);
|
||||||
|
|
||||||
//allocate a 256 MiB buffer
|
//allocate a 256 MiB buffer
|
||||||
debug_printf("allocating 256MiB buffer\n");
|
debug_printf("allocating 256MiB buffer\n");
|
||||||
char * big_buf = malloc(1<<28);
|
char * big_buf = malloc(1<<28);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user