Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/1.8.x/ccs-patch/README.ccs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1139 by kumaneko, Fri Apr 25 04:04:20 2008 UTC revision 1180 by kumaneko, Tue May 6 07:10:44 2008 UTC
# Line 1397  Fix 2008/04/21 Line 1397  Fix 2008/04/21
1397        resulting runtime BUG().        resulting runtime BUG().
1398        I added the expected code explicitly as a workaround.        I added the expected code explicitly as a workaround.
1399    
1400  Fix 2008/04/25  Fix 2008/05/06
1401    
1402      @ Return -ENOMEM when find_next_domain() failed to create a new domain.      @ Add memory quota.
1403    
1404        1.5.x returns -ENOMEM when FindNextDomain() failed to create a new        1.5.x returns -ENOMEM when FindNextDomain() failed to create a new
1405        domain, but I forgot to return -ENOMEM when find_next_domain()        domain, but I forgot to return -ENOMEM when find_next_domain() failed to
1406        failed to create a new domain.        create a new domain.
1407    
1408  Version 1.6.1 2008/??/??   Environment dependent bug fix release.        A domain is automatically created by find_next_domain() only if
1409          the domain for the requested program doesn't exist.
1410          This behavior is for the administrator's convenience.
1411          The administrator needn't to know how many domains are needed for running
1412          the whole programs in the system beforehand when developing the policy.
1413          But the administrator does not want the kernel to reject execution of the
1414          requested program when developing the policy.
1415    
1416          So, I think it is better to grant execution of programs even if
1417          find_next_domain() failed to create a new domain than reject execution.
1418          Thus, I decided not to return -ENOMEM when find_next_domain() failed to
1419          create a new domain. This exception breaks the domain transition rules,
1420          so I print "transition_failed" warning in /proc/ccs/domain_policy
1421          when this exception happened.
1422    
1423          Also, to prevent the system from being halted by unexpectedly allocating
1424          all kernel memory for the policy, I added memory quota.
1425          This quota is configurable via /proc/ccs/meminfo like
1426    
1427            echo Shared:  1048576 > /proc/ccs/meminfo
1428            echo Private: 1048576 > /proc/ccs/meminfo
1429    
1430    Version 1.6.1 2008/05/??   Bug fix release.

Legend:
Removed from v.1139  
changed lines
  Added in v.1180

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26