ksokk

Results 18 comments of ksokk

Perhaps it's time to consider removing the `vmo` mechanism. It seems that this mechanism has poor performance and lacks clear advantages. If the scheduling system continues to rely on this...

> > Perhaps it's time to consider removing the `vmo` mechanism. > > Agree, but we need a proposal for an alternative. > > > If the scheduling system continues...

> > > Perhaps it's time to consider removing the `vmo` mechanism. > > > > > > Agree, but we need a proposal for an alternative. > > Behold,...

``` ~ # ./spawn 1 [ERROR]: Uncaught panic! panicked at /root/asterinas/kernel/aster-nix/src/thread/task.rs:66:10: spawn task failed: NoMemory printing stack trace: 1: fn 0xffffffff890ab960 - pc 0xffffffff890ab978 / registers: rax 0x1; rdx 0xffffffff892bdf60;...

> But I can't see the connection between vfork and inaccurate time. Any more input? vfork() enables the child process to execute prior to the parent process and facilitates more...

> @skpupil Sure, I know what vfork is and why a command like time may use it. I meant the inaccuracy does not seem to have anything do to with...

> > The "user" and "sys" columns seem to display random values. > > I find out the reason. `time` command uses `wait4` syscall to acquire the user time and...

![image](https://github.com/asterinas/asterinas/assets/56211074/acaeac47-fbc0-4ebe-be8f-a404899e0ac8)

@cchanging I retested the program using the time command, and it took approximately 0.8 seconds. The optimization improvement is significant, and I believe this level of performance is completely acceptable....

> ![image](https://private-user-images.githubusercontent.com/56211074/314365666-97052d17-df0a-4492-91be-e73a152aee91.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA5MTQ4MjMsIm5iZiI6MTcxMDkxNDUyMywicGF0aCI6Ii81NjIxMTA3NC8zMTQzNjU2NjYtOTcwNTJkMTctZGYwYS00NDkyLTkxYmUtZTczYTE1MmFlZTkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzIwVDA2MDIwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY5YWZjMzE1MTMwZDEwYzQ5OGIxMWM3YzVlNGNhMmYwMTY3M2Q0NjVmZDFjMjc1YTczNjFiZTNjM2Y5MTMwZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KpJyJ72izX_j7HE-tDMdXFbLMswYTQqd3ZysxodB3DY) > > the bug i mentioned in #670 seems not disappear. and The bug ''rhs