FreeBSD Bugzilla – Attachment 163702 Details for
Bug 194513
zfs recv hangs in state kmem arena
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
utility to allocate memory to force defragmentation
alloc.c (text/plain), 419 bytes, created by
Steven Hartland
on 2015-12-01 11:29:40 UTC
(
hide
)
Description:
utility to allocate memory to force defragmentation
Filename:
MIME Type:
Creator:
Steven Hartland
Created:
2015-12-01 11:29:40 UTC
Size:
419 bytes
patch
obsolete
>#include <stdlib.h> >#include <string.h> >#include <err.h> >#include <sysexits.h> >#include <stdio.h> > >const long long size = (long long)1 << 30; > >int >main(int argc, char **argv) >{ > char *p; > int i; > > for (i = 0;;) { > if ((p = calloc(1, size)) == NULL) > err(EX_OSERR, "failed to allocate after %dGB\n", i); > i++; > > printf("allocated: %dGB dirtying...", i); > // Dirty it > memset(p, 1, size); > printf("done\n"); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 194513
:
148687
|
149075
|
149752
|
149753
| 163702 |
171704