#7417: disturbing notebook resource limit
------------------------+---------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: new
Priority: major | Milestone: sage-4.3
Component: notebook | Keywords:
Work_issues: | Author:
Reviewer: | Merged:
------------------------+---------------------------------------------------
Comment(by was):
This is caused by:
{{{
exceptions.IOError: [Errno 24] Too many open files:
'/sage/sage/local/lib/python/site-packages/sagenb/data/sag
e/html/error_message.html'
exceptions.IOError: [Errno 24] Too many open files:
'/sage/sage/local/lib/python/site-packages/sagenb/data/sag
e/html/worksheet_listing.html'
exceptions.IOError: [Errno 24] Too many open files:
'/home/sage/sagenb/sage_notebook.sagenb/home/deangelo/4/wo
rksheet.html'
exceptions.IOError: [Errno 24] Too many open files:
'/home/sage/sagenb/sage_notebook.sagenb/home/pablo.albacete/2/worksheet_conf.pickle'
}}}
Googling for this error shows that Python itself evidently has a 256 file
hardcoded limit. See, e.g., http://www.dslreports.com/forum/r21366308
-Python-IOError-Errno-24-Too-many-open-files
This is regularly causing *massive* trouble on sagenb.org... when there
are several dozen simultaneous users.
This is particularly bad because it leads to data loss, since the notebook
server can't save state, since it can't open files.
This simple test program illustrates this hard limit:
{{{
v = []
for i in range(300):
print i
v.append(open('a%s'%i,'w'))
sys.stdout.flush()
}}}
Output:
{{{
0
1
2
3
...
WARNING: Output truncated!
full_output.txt
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
...
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
Traceback (click to the left for traceback)
...
IOError: [Errno 24] Too many open files: 'a253'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7417#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---