.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "OUT_OF_MEMORY" "9" "09 October 2005" "" ""
.SH NAME
out_of_memory \- kill the ``best'' process when we run out of memory
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void out_of_memory (unsigned int __nocast \fIgfp_mask\fB, int \fIorder\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIgfp_mask\fB\fR
-- undescribed --
.TP
\fB\fIorder\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
.PP
If we run out of memory, we have the choice between either
killing a random task (bad), letting the system crash (worse)
OR try to be smart about which process to kill. Note that we
don't have to be perfect here, we just have to be good.