Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 + zipfile on fork-server multiprocessing #292

Merged
merged 3 commits into from
Dec 26, 2022
Merged

Conversation

y1r
Copy link
Member

@y1r y1r commented Dec 19, 2022

Current PFIO doesn't support S3 + zipfile on fork-server based multiprocessing execution model.
This model requires parameters given to Process should be pickled to move object from child to parent, who has responsibility to fork an new process.

dffff08 solves this issue by avoiding pickling of fileobj and zipobj, then after fork, it will be re-created by zip and S3's _reset() functions.

@y1r
Copy link
Member Author

y1r commented Dec 19, 2022

/test

@pfn-ci-bot
Copy link

Successfully created a job for commit dffff08:

1 similar comment
@pfn-ci-bot
Copy link

Successfully created a job for commit dffff08:

@y1r
Copy link
Member Author

y1r commented Dec 19, 2022

/test

@pfn-ci-bot
Copy link

Successfully created a job for commit e77521d:

1 similar comment
@pfn-ci-bot
Copy link

Successfully created a job for commit e77521d:

@kuenishi kuenishi added this to the 2.5.0 milestone Dec 20, 2022
@y1r
Copy link
Member Author

y1r commented Dec 20, 2022

/test

@pfn-ci-bot
Copy link

Successfully created a job for commit d407139:

1 similar comment
@pfn-ci-bot
Copy link

Successfully created a job for commit d407139:

@y1r
Copy link
Member Author

y1r commented Dec 23, 2022

/test

@pfn-ci-bot
Copy link

Successfully created a job for commit 612ad31:

1 similar comment
@pfn-ci-bot
Copy link

Successfully created a job for commit 612ad31:

@y1r
Copy link
Member Author

y1r commented Dec 23, 2022

612ad31 fixes the test.

@kuenishi Please review this PR.

@y1r y1r requested a review from kuenishi December 23, 2022 02:47
@kuenishi kuenishi merged commit 30dd8bc into pfnet:master Dec 26, 2022
@kuenishi kuenishi added the cat:enhancement Implementation that does not break interfaces. label Dec 26, 2022
@y1r y1r deleted the s3-forkserver branch July 26, 2023 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:enhancement Implementation that does not break interfaces.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants