Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2003 21:38:53 -0500 (CDT)
From:      Steve Atwell <satwell@uiuc.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58234: Slow memory allocation in python on 5.1-CURRENT
Message-ID:  <200310190238.h9J2crAE019518@stripped.disjoint.net>
Resent-Message-ID: <200310190240.h9J2eF4R052633@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         58234
>Category:       ports
>Synopsis:       Slow memory allocation in python on 5.1-CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 18 19:40:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Steve Atwell <atwell@uiuc.edu>
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD xxxxxxx 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Sat Oct 18 19:40:17 CDT 2003 root@xxxxxxx:/usr/obj/usr/src/sys/STRIPPED i386

Celeron 800MHz
512 MB RAM, 512 MB swap
5.1-CURRENT from Oct 18 2003

>Description:
Memory allocation in python on 5.1-CURRENT is very, very slow.
Performing a list append lots of times takes a long time.  strace shows
that python is making lots and lots of break() calls while this is
happening.

Problem does not occur on 5.1-RELEASE or older and does not occur on
Linux, MacOS X, or Solaris.  Occurs with both python-2.3.2 and
python-2.2.3_3.
	
>How-To-Repeat:
Execute the following python code:

a = []
for x in range(100000): a.append(x)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310190238.h9J2crAE019518>