lkml.org 
[lkml]   [2003]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Do I need kswapd if I don't have swap?
Date
David Wuertele <dave-gnus@bfnet.com> writes:

> I expected this program to malloc most of my embedded MIPS's 32MB of
> system RAM, then eventually return with a -1 or a -2. Unfortunately,
> it hangs having finally printed:
>
> M26916864
> W26916864
> R26916864
>
> The malloc call isn't even returning. What could explain that?

I can't help you there.

> I don't have swap space configured, and I notice several kernel
> threads that I figure might be assuming I have swap. For example:
>
> 3 root S [ksoftirqd_CPU0]
> 4 root S [kswapd]
> 5 root S [bdflush]
> 6 root S [kupdated]
> 7 root S [mtdblockd]
>
> Do I need any of these if I don't have swap? Are there any special
> kernel configs I should be doing if I don't have swap?

Swap space is really just special case of disk caching. Many pages
will be backed by regular files, such as the text segment of most
processes. Swap is used for pages that don't have a corresponding
disk file. Not configuring any swap is perfectly normal, and
shouldn't cause any problems. After all, swap is normally enabled by
some system boot script, so it has to be able to start without any
swap space. For the record, I've been running without swap for a long
time on a system with enough real RAM.

--
Måns Rullgård
mru@kth.se

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.077 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site