Discussion:
Managed Memory Systems
craig_adams_uk
2012-03-08 11:30:03 UTC
Permalink
Hi

I have upload some class for process and Managed Memory.

The Managed Memory Systems was made for process but process now going to added a lot later on. So i was think of change the Managed Memory Systems class to work without process and work with the system with out now.

the Managed Memory Systems setup area of memory that a object can be allocate to. This would allow for object to be allocate to a area but later on to be deallocte when not needed by a garbage collection. Free up memory for a new object.

It is base on the Heap class and the only downsize of the system that object would only be allow to be a limit size. The size limit can be change.

Take a look at the class how it is now. it not connect to any let.

you can found it in C:\Users\A51Uk\Desktop\cosmos-89035\source2\Kernel\System\Hardware\Core\Cosmos.Core\Managed_Memory_System

There are two class the main one is ManagedMemory.cs and the other one is ObjectMemory.cs. For some reason it does not show up in Visual Studio.

What you all think should the class be change to remove or comment-out the process part and allow it to replace the heap class?

I think it would be good as it would allow someone to more easy make a garbage collection and would not change how the system work now. It would also get people in think on making thing more object base.

So what you all think ?

Have a look.

- Craig Adams
craig_adams_uk
2012-03-12 22:42:29 UTC
Permalink
Hi All


I have change the managed memory system class so it is able to work with the system will got now. It allows allocate of object to the heap in a managed way and to allow for free the memory later on so that new object can use that memory.

This will allow the making of the garbage collection more easy.

I have test the code out and got fully working.

I am planing to up load the code some time tomorrow. I am from the UK.

The down side to this system is that object with be limit in size but this limit can be change in the managed memory system class.

The good thing are:

- managed memory

- Can be use by a garbage collection to free space.

- Any free space can be reuse.


Note: It does cause the OS to start up more slower as it setup up the memory. It will replace the heap class.

Tell me what you think.

- Craig Adams
Post by craig_adams_uk
Hi
I have upload some class for process and Managed Memory.
The Managed Memory Systems was made for process but process now going to added a lot later on. So i was think of change the Managed Memory Systems class to work without process and work with the system with out now.
the Managed Memory Systems setup area of memory that a object can be allocate to. This would allow for object to be allocate to a area but later on to be deallocte when not needed by a garbage collection. Free up memory for a new object.
It is base on the Heap class and the only downsize of the system that object would only be allow to be a limit size. The size limit can be change.
Take a look at the class how it is now. it not connect to any let.
you can found it in C:\Users\A51Uk\Desktop\cosmos-89035\source2\Kernel\System\Hardware\Core\Cosmos.Core\Managed_Memory_System
There are two class the main one is ManagedMemory.cs and the other one is ObjectMemory.cs. For some reason it does not show up in Visual Studio.
What you all think should the class be change to remove or comment-out the process part and allow it to replace the heap class?
I think it would be good as it would allow someone to more easy make a garbage collection and would not change how the system work now. It would also get people in think on making thing more object base.
So what you all think ?
Have a look.
- Craig Adams
Chad Z. Hower aka Kudzu
2012-03-13 00:15:10 UTC
Permalink
Post by craig_adams_uk
I have change the managed memory system class so it is able to work with
the system will got now. It allows allocate of object to the heap in a
managed way and to allow for free the memory later on so that new object
can use that memory.
Great!
Post by craig_adams_uk
The down side to this system is that object with be limit in size but
this limit can be change in the managed memory system class.
Limited by what?
Matthijs ter Woord
2012-03-13 08:00:18 UTC
Permalink
also, does this limit mean that objects smaller than the limit still take
the limit number of bytes in ram?
Post by Chad Z. Hower aka Kudzu
Post by craig_adams_uk
I have change the managed memory system class so it is able to work with
the system will got now. It allows allocate of object to the heap in a
managed way and to allow for free the memory later on so that new object
can use that memory.
Great!
Post by craig_adams_uk
The down side to this system is that object with be limit in size but
this limit can be change in the managed memory system class.
Limited by what?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
CRAIG ADAMS
2012-03-13 10:44:12 UTC
Permalink
yes it does.

I looking into way to overcome this. for a later on and way to speed up the
boot.

- Craig Adams
Post by Matthijs ter Woord
**
also, does this limit mean that objects smaller than the limit still take
the limit number of bytes in ram?
Post by Chad Z. Hower aka Kudzu
Post by craig_adams_uk
I have change the managed memory system class so it is able to work with
the system will got now. It allows allocate of object to the heap in a
managed way and to allow for free the memory later on so that new object
can use that memory.
Great!
Post by craig_adams_uk
The down side to this system is that object with be limit in size but
this limit can be change in the managed memory system class.
Limited by what?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
CRAIG ADAMS
2012-03-13 12:37:10 UTC
Permalink
Hi

Got a small problem when I upload the classes to the server. it did not
update the Cosmos.Core.csproj to say the file are they.

The file are in the core folder they name are ManagedMemory.cs
and ObjectMemory.cs

They are using the namespace namespace Cosmos.Core.Managed_Memory_System

I have try to change Cosmos.Core.csproj but it would not later me. ):

If you can fix this problem do so.

Hopefully this problem will be fix soon.

I am sorry for any problems this may occur.

From

- Craig Adams
Post by CRAIG ADAMS
yes it does.
I looking into way to overcome this. for a later on and way to speed up
the boot.
- Craig Adams
Post by Matthijs ter Woord
**
also, does this limit mean that objects smaller than the limit still take
the limit number of bytes in ram?
Post by craig_adams_uk
Post by craig_adams_uk
I have change the managed memory system class so it is able to work
with
Post by craig_adams_uk
the system will got now. It allows allocate of object to the heap in a
managed way and to allow for free the memory later on so that new
object
Post by craig_adams_uk
can use that memory.
Great!
Post by craig_adams_uk
The down side to this system is that object with be limit in size but
this limit can be change in the managed memory system class.
Limited by what?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
Chad Z. Hower aka Kudzu
2012-03-13 13:01:47 UTC
Permalink
Post by CRAIG ADAMS
They are using the namespace namespace Cosmos.Core.Managed_Memory_System
Please avoid using _




------------------------------------

--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Cosmos-Dev/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Cosmos-Dev/join
(Yahoo! ID required)

<*> To change settings via email:
Cosmos-Dev-digest-***@public.gmane.org
Cosmos-Dev-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
Cosmos-Dev-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
CRAIG ADAMS
2012-03-13 13:13:18 UTC
Permalink
Ok

Can you please fix this problem as the cause the OS system to not work.

I am really sorry about this problem.

Ones the classes can be seen they should be no problem.

Note: There is a long boot up time for the OS now. this to do with setup
the memory.

I looking for a way to speed this up.


- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
They are using the namespace namespace Cosmos.Core.Managed_Memory_System
Please avoid using _
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
Chad Z. Hower aka Kudzu
2012-03-13 13:23:38 UTC
Permalink
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did not
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?




------------------------------------

--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Cosmos-Dev/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Cosmos-Dev/join
(Yahoo! ID required)

<*> To change settings via email:
Cosmos-Dev-digest-***@public.gmane.org
Cosmos-Dev-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
Cosmos-Dev-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
CRAIG ADAMS
2012-03-13 13:22:20 UTC
Permalink
How do you done a fully checkin ?

I have not use TFS before.

- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did not
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
Matthijs ter Woord
2012-03-13 13:34:15 UTC
Permalink
how did you check in the files you checked in?

You didn't check in the .csproj changes.. please remove the Cosmos.Core.sln
file you checked in. there's a Cosmos.sln file you use..


Regarding the changs you're doing: Please discuss core changes before doing
them: right now (besides the fact that it doesn't build) you checked in
changes which completely replace the memory allocator. Meaning that if it's
not working you get reallky obscure behavior and a completely disfunctinoal
kernel....
Post by CRAIG ADAMS
How do you done a fully checkin ?
I have not use TFS before.
- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did not
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
CRAIG ADAMS
2012-03-13 13:41:05 UTC
Permalink
Ok


I will remove the Cosmos.Core.sln file.


I have test the change out a lot to make sure it fully working and will
not cause any problems.

It will be my last core changes for some time.

I use the add file on TFS .
Post by Matthijs ter Woord
**
how did you check in the files you checked in?
You didn't check in the .csproj changes.. please remove the
Cosmos.Core.sln file you checked in. there's a Cosmos.sln file you use..
Regarding the changs you're doing: Please discuss core changes before
doing them: right now (besides the fact that it doesn't build) you checked
in changes which completely replace the memory allocator. Meaning that if
it's not working you get reallky obscure behavior and a completely
disfunctinoal kernel....
Post by CRAIG ADAMS
How do you done a fully checkin ?
I have not use TFS before.
- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did not
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
Chad Z. Hower aka Kudzu
2012-03-13 13:46:03 UTC
Permalink
It will be my last core changes for some time.
I use the add file on TFS .
You should not need to use add file. If you make it part of a project in
the SLN, it will automatically import it.



------------------------------------

--------------------------------------------------
More things to join for Cosmos!

1) Cosmos chat room:
http://tinyurl.com/pc7bds

2) Please add yourself to the map:
http://tinyurl.com/qhttde

3) Help publicity and join our Facebook page:
http://tinyurl.com/plrloa

--------------------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Cosmos-Dev/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Cosmos-Dev/join
(Yahoo! ID required)

<*> To change settings via email:
Cosmos-Dev-digest-***@public.gmane.org
Cosmos-Dev-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
Cosmos-Dev-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Matthijs ter Woord
2012-03-13 13:42:32 UTC
Permalink
We use TFS, but how did you add the files/changes?

Regarding your changes: I dont doubt you tested it, but core changes should
be discussed here..
Post by CRAIG ADAMS
Ok
I will remove the Cosmos.Core.sln file.
I have test the change out a lot to make sure it fully working and will
not cause any problems.
It will be my last core changes for some time.
I use the add file on TFS .
Post by Matthijs ter Woord
**
how did you check in the files you checked in?
You didn't check in the .csproj changes.. please remove the
Cosmos.Core.sln file you checked in. there's a Cosmos.sln file you use..
Regarding the changs you're doing: Please discuss core changes before
doing them: right now (besides the fact that it doesn't build) you checked
in changes which completely replace the memory allocator. Meaning that if
it's not working you get reallky obscure behavior and a completely
disfunctinoal kernel....
Post by CRAIG ADAMS
How do you done a fully checkin ?
I have not use TFS before.
- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did
not
Post by CRAIG ADAMS
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
CRAIG ADAMS
2012-03-13 13:48:22 UTC
Permalink
Hi

It my first time using TFS.

I did discussed the changes on here a 5 day ago but no one sad any
thing. I also post something lest night to see if they be any problems. I
have test the code out the last two day. They was some bug most coming for
the compile but i fix them all.

Try the code out you self.
Post by Matthijs ter Woord
**
We use TFS, but how did you add the files/changes?
Regarding your changes: I dont doubt you tested it, but core changes
should be discussed here..
Post by CRAIG ADAMS
Ok
I will remove the Cosmos.Core.sln file.
I have test the change out a lot to make sure it fully working and will
not cause any problems.
It will be my last core changes for some time.
I use the add file on TFS .
Post by Matthijs ter Woord
**
how did you check in the files you checked in?
You didn't check in the .csproj changes.. please remove the
Cosmos.Core.sln file you checked in. there's a Cosmos.sln file you use..
Regarding the changs you're doing: Please discuss core changes before
doing them: right now (besides the fact that it doesn't build) you checked
in changes which completely replace the memory allocator. Meaning that if
it's not working you get reallky obscure behavior and a completely
disfunctinoal kernel....
Post by CRAIG ADAMS
How do you done a fully checkin ?
I have not use TFS before.
- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did
not
Post by CRAIG ADAMS
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
Matthijs ter Woord
2012-03-13 13:55:37 UTC
Permalink
I cannot test code out currently.. But its not about testing it at once: as
long as we dont have a GC, doing anyting capable of reclaiming chnks of
memory is a bit pointless. Therefore changes to how memory is allocated
should be done carefully.

You mentioned you wanted to check in some new code by you, which could in
the future be used for memory etc. You never however mentioned you wanted
to change existing kernel to use your code.

We want new people to first do "staged" checkins, so we can check, as the
memory allocation, compiler, etc are very fragile (and hard to do right).



Please note: it's not that we want to discourage you contributing anything,
it's more about the how: you're still quite new to the project (and you're
very welcome) and we want to guide you through your first changes....
Post by CRAIG ADAMS
Hi
It my first time using TFS.
I did discussed the changes on here a 5 day ago but no one sad any
thing. I also post something lest night to see if they be any problems. I
have test the code out the last two day. They was some bug most coming for
the compile but i fix them all.
Try the code out you self.
Post by Matthijs ter Woord
**
We use TFS, but how did you add the files/changes?
Regarding your changes: I dont doubt you tested it, but core changes
should be discussed here..
Post by CRAIG ADAMS
Ok
I will remove the Cosmos.Core.sln file.
I have test the change out a lot to make sure it fully working and will
not cause any problems.
It will be my last core changes for some time.
I use the add file on TFS .
Post by Matthijs ter Woord
**
how did you check in the files you checked in?
You didn't check in the .csproj changes.. please remove the
Cosmos.Core.sln file you checked in. there's a Cosmos.sln file you use..
Regarding the changs you're doing: Please discuss core changes before
doing them: right now (besides the fact that it doesn't build) you checked
in changes which completely replace the memory allocator. Meaning that if
it's not working you get reallky obscure behavior and a completely
disfunctinoal kernel....
On Tue, Mar 13, 2012 at 2:22 PM, CRAIG ADAMS <
Post by CRAIG ADAMS
How do you done a fully checkin ?
I have not use TFS before.
- Craig Adams
Post by Chad Z. Hower aka Kudzu
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it did
not
Post by CRAIG ADAMS
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
CRAIG ADAMS
2012-03-13 13:58:09 UTC
Permalink
ok
**
as long as we dont have a GC, doing anyting capable of reclaiming chnks of
memory is a bit pointless. Therefore changes to how memory is allocated
should be done carefully.
You mentioned you wanted to check in some new code by you, which could in
the future be used for memory etc. You never however mentioned you wanted
to change existing kernel to use your code.
We want new people to first do "staged" checkins, so we can check, as the
memory allocation, compiler, etc are very fragile (and hard to do right).
Please note: it's not that we want to discourage you contributing
anything, it's more about the how: you're still quite new to the project
(and you're very welcome) and we want to guide you through your first
changes....
Post by CRAIG ADAMS
Hi
It my first time using TFS.
I did discussed the changes on here a 5 day ago but no one sad any
thing. I also post something lest night to see if they be any problems. I
have test the code out the last two day. They was some bug most coming for
the compile but i fix them all.
Try the code out you self.
Post by Matthijs ter Woord
**
We use TFS, but how did you add the files/changes?
Regarding your changes: I dont doubt you tested it, but core changes
should be discussed here..
Post by CRAIG ADAMS
Ok
I will remove the Cosmos.Core.sln file.
I have test the change out a lot to make sure it fully working and will
not cause any problems.
It will be my last core changes for some time.
I use the add file on TFS .
Post by Matthijs ter Woord
**
how did you check in the files you checked in?
You didn't check in the .csproj changes.. please remove the
Cosmos.Core.sln file you checked in. there's a Cosmos.sln file you use..
Regarding the changs you're doing: Please discuss core changes before
doing them: right now (besides the fact that it doesn't build) you checked
in changes which completely replace the memory allocator. Meaning that if
it's not working you get reallky obscure behavior and a completely
disfunctinoal kernel....
On Tue, Mar 13, 2012 at 2:22 PM, CRAIG ADAMS <
Post by CRAIG ADAMS
How do you done a fully checkin ?
I have not use TFS before.
- Craig Adams
Post by CRAIG ADAMS
Post by CRAIG ADAMS
Got a small problem when I upload the classes to the server. it
did not
Post by CRAIG ADAMS
update the Cosmos.Core.csproj to say the file are they.
Did you do a full checkin? Do you have pending changes still showing?
------------------------------------
--------------------------------------------------
More things to join for Cosmos!
http://tinyurl.com/pc7bds
http://tinyurl.com/qhttde
http://tinyurl.com/plrloa
--------------------------------------------------
Yahoo! Groups Links
Loading...