List Info

Thread: CR: Allow overrides of growth limits....




CR: Allow overrides of growth limits....
country flaguser name
United States
2007-03-30 19:49:35
We need to be able to change the floor and ceiling values
depending
on the build target:

#define CHUNK_RES_MEM_FLOOR     512000  //512 KB
#define CHUNK_RES_MEM_CEILING   1000000 // 1MB

This change just uses the defaults only if they are not
defined
already. Then I just define them in the OLPC profile as
needed.

After this change, HTTP streaming works on the XO (olpc) for
SMIL,
RV, Ogg and other datatypes.

HEAD only.

--greg.



Index: httpfsys.h
============================================================
=======
RCS file: /cvsroot/filesystem/http/httpfsys.h,v
retrieving revision 1.38
diff -u -w -r1.38 httpfsys.h
--- httpfsys.h	8 Mar 2006 02:28:35 -0000	1.38
+++ httpfsys.h	31 Mar 2007 00:46:22 -0000
 -103,11
+103,16 
  #define DEFAULT_CHUNK_SIZE 1024 //default size of chunk
buffer

  #ifdef HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT
+# if !defined(CHUNK_RES_MEM_FLOOR)
+#   define CHUNK_RES_MEM_FLOOR     512000
+# endif
+# if !defined(CHUNK_RES_MEM_CEILING)
+#   define CHUNK_RES_MEM_CEILING   1000000
+# endif
+#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT
+

-#define CHUNK_RES_MEM_FLOOR     512000  //512 KB
-#define CHUNK_RES_MEM_CEILING   1000000 // 1MB

-#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT

  typedef enum
  {
Index: helix-client-OLPC.pf
============================================================
=======
RCS file:
/cvsroot/ribosome/build/umakepf/helix-client-OLPC.pf,v
retrieving revision 1.1
diff -u -w -r1.1 helix-client-OLPC.pf
--- helix-client-OLPC.pf	29 Mar 2007 20:58:17 -0000	1.1
+++ helix-client-OLPC.pf	31 Mar 2007 00:46:44 -0000
 -95,3
+95,6 

 
project.AddDefines('HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT'
)
  project.AddDefines('HELIX_FEATURE_ALSA')
+
+project.AddDefines("CHUNK_RES_MEM_FLOOR=128000")
+project.AddDefines("CHUNK_RES_MEM_CEILING=256000"
)

_______________________________________________
Filesystem-dev mailing list
Filesystem-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev

CR: RESEND, Allow overrides of growth limits....
country flaguser name
United States
2007-04-03 15:01:57
I am going to go ahead and check this into HEAD today
if I don't hear anything further....

--greg.


Greg Wright wrote:
> We need to be able to change the floor and ceiling
values depending
> on the build target:
> 
> #define CHUNK_RES_MEM_FLOOR     512000  //512 KB
> #define CHUNK_RES_MEM_CEILING   1000000 // 1MB
> 
> This change just uses the defaults only if they are not
defined
> already. Then I just define them in the OLPC profile as
needed.
> 
> After this change, HTTP streaming works on the XO
(olpc) for SMIL,
> RV, Ogg and other datatypes.
> 
> HEAD only.
> 
> --greg.
> 
> 
> 
> Index: httpfsys.h
>
============================================================
=======
> RCS file: /cvsroot/filesystem/http/httpfsys.h,v
> retrieving revision 1.38
> diff -u -w -r1.38 httpfsys.h
> --- httpfsys.h    8 Mar 2006 02:28:35 -0000    1.38
> +++ httpfsys.h    31 Mar 2007 00:46:22 -0000
>  -103,11 +103,16 
>  #define DEFAULT_CHUNK_SIZE 1024 //default size of
chunk buffer
> 
>  #ifdef HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT
> +# if !defined(CHUNK_RES_MEM_FLOOR)
> +#   define CHUNK_RES_MEM_FLOOR     512000
> +# endif
> +# if !defined(CHUNK_RES_MEM_CEILING)
> +#   define CHUNK_RES_MEM_CEILING   1000000
> +# endif
> +#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT
> +
> 
> -#define CHUNK_RES_MEM_FLOOR     512000  //512 KB
> -#define CHUNK_RES_MEM_CEILING   1000000 // 1MB
> 
> -#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT
> 
>  typedef enum
>  {
> Index: helix-client-OLPC.pf
>
============================================================
=======
> RCS file:
/cvsroot/ribosome/build/umakepf/helix-client-OLPC.pf,v
> retrieving revision 1.1
> diff -u -w -r1.1 helix-client-OLPC.pf
> --- helix-client-OLPC.pf    29 Mar 2007 20:58:17 -0000 
  1.1
> +++ helix-client-OLPC.pf    31 Mar 2007 00:46:44 -0000
>  -95,3 +95,6 
> 
> 
project.AddDefines('HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT'
)
>  project.AddDefines('HELIX_FEATURE_ALSA')
> +
>
+project.AddDefines("CHUNK_RES_MEM_FLOOR=128000")
>
+project.AddDefines("CHUNK_RES_MEM_CEILING=256000"
)
> 
> _______________________________________________
> Filesystem-dev mailing list
> Filesystem-devhelixcommunity.org
> http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev


_______________________________________________
Filesystem-dev mailing list
Filesystem-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev

CN: Allow overrides of growth limits....
country flaguser name
United States
2007-04-03 19:22:14
This is now checked into HEAD.

--greg.

Greg Wright wrote:
> I am going to go ahead and check this into HEAD today
> if I don't hear anything further....
> 
> --greg.
> 
> 
> Greg Wright wrote:
>> We need to be able to change the floor and ceiling
values depending
>> on the build target:
>>
>> #define CHUNK_RES_MEM_FLOOR     512000  //512 KB
>> #define CHUNK_RES_MEM_CEILING   1000000 // 1MB
>>
>> This change just uses the defaults only if they are
not defined
>> already. Then I just define them in the OLPC
profile as needed.
>>
>> After this change, HTTP streaming works on the XO
(olpc) for SMIL,
>> RV, Ogg and other datatypes.
>>
>> HEAD only.
>>
>> --greg.
>>
>>
>>
>> Index: httpfsys.h
>>
============================================================
=======
>> RCS file: /cvsroot/filesystem/http/httpfsys.h,v
>> retrieving revision 1.38
>> diff -u -w -r1.38 httpfsys.h
>> --- httpfsys.h    8 Mar 2006 02:28:35 -0000   
1.38
>> +++ httpfsys.h    31 Mar 2007 00:46:22 -0000
>>  -103,11 +103,16 
>>  #define DEFAULT_CHUNK_SIZE 1024 //default size of
chunk buffer
>>
>>  #ifdef HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT
>> +# if !defined(CHUNK_RES_MEM_FLOOR)
>> +#   define CHUNK_RES_MEM_FLOOR     512000
>> +# endif
>> +# if !defined(CHUNK_RES_MEM_CEILING)
>> +#   define CHUNK_RES_MEM_CEILING   1000000
>> +# endif
>> +#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT
>> +
>>
>> -#define CHUNK_RES_MEM_FLOOR     512000  //512 KB
>> -#define CHUNK_RES_MEM_CEILING   1000000 // 1MB
>>
>> -#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT
>>
>>  typedef enum
>>  {
>> Index: helix-client-OLPC.pf
>>
============================================================
=======
>> RCS file:
/cvsroot/ribosome/build/umakepf/helix-client-OLPC.pf,v
>> retrieving revision 1.1
>> diff -u -w -r1.1 helix-client-OLPC.pf
>> --- helix-client-OLPC.pf    29 Mar 2007 20:58:17
-0000    1.1
>> +++ helix-client-OLPC.pf    31 Mar 2007 00:46:44
-0000
>>  -95,3 +95,6 
>>
>> 
project.AddDefines('HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT'
)
>>  project.AddDefines('HELIX_FEATURE_ALSA')
>> +
>>
+project.AddDefines("CHUNK_RES_MEM_FLOOR=128000")
>>
+project.AddDefines("CHUNK_RES_MEM_CEILING=256000"
)
>>
>> _______________________________________________
>> Filesystem-dev mailing list
>> Filesystem-devhelixcommunity.org
>> http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev
> 


_______________________________________________
Filesystem-dev mailing list
Filesystem-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )