kern/142921: memory allocation/release problem?
vermaden
vermaden at interia.pl
Mon Jan 18 01:20:07 UTC 2010
>Number: 142921
>Category: kern
>Synopsis: memory allocation/release problem?
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 18 01:20:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: vermaden
>Release: 8.0-RELEASE
>Organization:
>Environment:
FreeBSD savio 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I have a script [1] that generates links/bookmarks for me based upon the configuration file [2], it takes about 2 minutes on CentOS 5.4 LiveCD under VirtualBox with 256MB to complete the task, while it never finishes the work under FreeBSD because lack of free memory (3GB system). This problem is not sh(1) related, cause I tried to set zsh/bash/dash as executive shell (#! /usr/local/bin/zsh and so) to compare results, all of them scream about lack of free memory.
Below are results from CentOS 5.4 LiveCD and FreeBSD.
CENTOS
------------------------------------------------------------------------------
[centos at livecd ~]$ time ./generate_links_html.sh SITES > links.htm
real 1m43.700s
user 0m39.917s
sys 0m57.186s
[centos at livecd ~]$ ls -l links.htm
-rw-rw-r-- 1 centos centos 83786 Jan 18 01:32 links.htm
[centos at livecd ~]$ free -m
total used free shared buffers cached
Mem: 249 245 4 0 12 102
-/+ buffers/cache: 130 118
Swap: 0 0 0
[centos at livecd ~]$ uname -a
Linux livecd.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
------------------------------------------------------------------------------
FREEBSD
------------------------------------------------------------------------------
vermaden % time generate_links_html.sh.bck SITES > links.htm
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
/home/vermaden/scripts/generate_links_html.sh: Out of space
^C
generate_links_html.sh SITES > links.htm 162.88s user 99.64s system 21% cpu 20:29.13 total
vermaden % top(1) memory output (after ^C):
Mem: 319M Active, 151M Inact, 722M Wired, 2008K Cache, 105M Buf, 1792M Free
Swap: 2048M Total, 2048M Free
vermaden % uname -a
FreeBSD savio 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
------------------------------------------------------------------------------
[1] http://strony.toya.net.pl/~vermaden/tmp/generate_links_html.sh
[2] http://strony.toya.net.pl/~vermaden/tmp/SITES
Regards,
vermaden
>How-To-Repeat:
prompt% wget http://strony.toya.net.pl/~vermaden/tmp/generate_links_html.sh
prompt% wget http://strony.toya.net.pl/~vermaden/tmp/SITES
prompt% chmod +x generate_links_html.sh
prompt% ./generate_links_html.sh SITES > links.htm
prompt% ${BROWSER} links.htm
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list