Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto -- sage -t -long devel/sage/sage/crypto/mq/sr.py fails on many machines #3758

Closed
williamstein opened this issue Aug 2, 2008 · 6 comments

Comments

@williamstein
Copy link
Contributor


=====================================================

[was@localhost ~]$ cat /etc/issue
RHEL5 -- StartCom Enterprise Linux AS release 5.0.0 (Kishuf)
Kernel \r on an \m

        sage -t -long devel/sage/sage/crypto/mq/sr.py
Total time for all tests: 4047.3 seconds

Because of lack of RAM:

[was@localhost ~]$ free
             total       used       free     shared    buffers     cached
Mem:        255704     223072      32632          0      35608     140592
Swap:       524280      41776     482504

I still am very unhappy about this doctest failure.  Shouldn't Sage should work and
pass its test suite  with 768MB memory?

=====================================================

On the Ubuntu LTS 64-bit Sage install with 1GB RAM exactly one failure:


        sage -t -long devel/sage/sage/crypto/mq/sr.py

was@SAGE64VPC:~$ free
             total       used       free     shared    buffers     cached
Mem:       1028380     576408     451972          0     101512     196976

=====================================================

Component: algebra

Issue created by migration from https://trac.sagemath.org/ticket/3758

@williamstein williamstein added this to the sage-3.1.2 milestone Aug 2, 2008
@williamstein
Copy link
Contributor Author

comment:1

Here's what it looks like:

[was@localhost sage-3.1.alpha0]$ ./sage -t --long devel/sage/sage/crypto/mq/sr.py
sage -t --long devel/sage/sage/crypto/mq/sr.py              sh: line 1: 28053 Killed                  /home/was/build/sage-3.1.alpha0/local/bin/python /home/was/build/sage-3.1.alpha0/tmp/.doctest_sr.py >/tmp/tmp6Q-Tzr 2>/tmp/tmpNd2IJH

A mysterious error (perphaps a memory error?) occurred, which may have crashed doctest.
	 [134.8 s]
exit code: 768
 
----------------------------------------------------------------------
The following tests failed:


	sage -t --long devel/sage/sage/crypto/mq/sr.py
Total time for all tests: 134.8 seconds
[was@localhost sage-3.1.alpha0]$ 

@malb
Copy link
Member

malb commented Aug 18, 2008

comment:2

This is related to/the same as #1046.

@malb malb modified the milestones: sage-3.1.2, sage-3.1.1 Aug 18, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.1.1, sage-3.1.2 Aug 18, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Oct 29, 2008

comment:4

Hmm, #4380 seems to make the situation better, but on a 10.4 box with plenty of RAM and a 32 bit build of Sage we still get

varro:~/sage-3.2.alpha1 mabshoff$ ./sage -t -long devel/sage/sage/crypto/mq/sr.py
sage -t -long devel/sage/sage/crypto/mq/sr.py                
halt 14

error: no more memory
System 324568k:356856k Appl 319751k/4816k Malloc 3654k/401k Valloc 320512k/4415k Pages 80090/38 Regions 626:685

A mysterious error (perphaps a memory error?) occurred, which may have crashed doctest.
	 [812.5 s]
exit code: 768

But overall with #4380 applied we see big improvements already.

Cheers,

Michael

@shumow
Copy link

shumow commented Jan 23, 2009

comment:5

Attachment: trac_3758-Fix_Crypto_DocTest.patch.gz

The problem here is that the doctest for sage.crypto.mq.sr.test_consistency uses too much memory.

There are two options to fix this:

  1. Just take the doc test out.
2) Change the doctest to call test_consistency w/ max_n=1 instead of max_n=2. This leads to a more than 5 fold improvement of memory usage / time.

This patch implements 2, because (1) would make test coverage numbers decrease.

@malb
Copy link
Member

malb commented Jan 24, 2009

comment:6

looks good.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 24, 2009

comment:7

Merged in Sage 3.3.alpha2

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Jan 24, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4.1, sage-3.3 Jan 24, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants