Ignore:
Timestamp:
Jul 13, 2017, 11:01:58 AM (7 years ago)
Author:
meunier
Message:
  • Mise à jour NR2 et Rosenfeld
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/rosenfeld.py

    r821 r826  
    4141
    4242    # QM warning: if less than 8M per cluster (i.e. 2M per thread), small pages are required
    43     stack_base = 0x40000000
     43    stack_base = 0x30000000
    4444    stack_size = 0x00080000     # 512K (per cluster) => 128K per thread
    4545    #stack_size = 0x00400000     # 4M (per cluster) => 1M per thread
    4646
    47     heap_base  = 0x60000000
     47    heap_base  = 0x40000000
    4848    #heap_size  = 0x00800000     # 8 Mbytes (per cluster)
    49     heap_size  = 0x10000000     # 256 Mbytes (total)
     49    heap_size  = 0x10000000     # 256 Mbytes (default)
    5050
    5151    # create vspace
     
    9191            if (mapping.clusters[cluster_id].procs):
    9292                nclusters = x_size * y_size
    93                 if x == 0 and y == 0:
    94                     size = heap_size / 2
     93                if x == 0 and y == 0 and x_size * y_size == 1:
     94                    # only one cluster: takes all heap
    9595                    base = heap_base
     96                    size = 0x20000000 # 512 Mo
     97                elif x_size * y_size == 4:
     98                    # 4 clusters: 128 Mo to all clusters
     99                    size = 0x08000000 # 128 Mo
     100                    base = heap_base + ((y * x_size) + x) * size
     101                elif x_size * y_size == 16:
     102                    # 16 clusters: 64 Mo to cluster 0, 32 to others
     103                    if x == 0 and y == 0:
     104                        base = heap_base
     105                        size = 0x04000000 # 64 Mo
     106                    else:
     107                        size = 0x02000000 # 32 Mo
     108                        base = heap_base + 0x04000000 + ((y * x_size) + x - 1) * size
    96109                else:
    97110                    size = heap_size / (2 * nclusters)
Note: See TracChangeset for help on using the changeset viewer.