Skip to content

Update Kineto to fix fd leak#59755

Closed
malfet wants to merge 1 commit intopytorch:masterfrom
malfet:malfet/update-kineto-not-to-leak
Closed

Update Kineto to fix fd leak#59755
malfet wants to merge 1 commit intopytorch:masterfrom
malfet:malfet/update-kineto-not-to-leak

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Jun 9, 2021

Update to commit containing pytorch/kineto#281
Fixes #59746

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 9, 2021

💊 CI failures summary and remediations

As of commit 885d148 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@malfet malfet requested review from a team and ngimel June 9, 2021 22:37
@facebook-github-bot
Copy link
Contributor

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ilia-cher ilia-cher requested a review from gdankel June 10, 2021 00:49
@ilia-cher
Copy link
Contributor

cc. @gdankel on the latest changes to kineto - looks like there're some build errors now

@ngimel
Copy link
Collaborator

ngimel commented Jun 10, 2021

Yep, we need to set USE_KINETO_UPDATED (where?) together with the submodule update. @gdankel can you point to the place?

@gdankel
Copy link
Contributor

gdankel commented Jun 10, 2021

Checking!

@ilia-cher
Copy link
Contributor

ilia-cher commented Jun 10, 2021

Yep, we need to set USE_KINETO_UPDATED (where?) together with the submodule update. @gdankel can you point to the place?

no, we don't need to set it up (it's not set in oss on purpose) - we use it (btw, similarly to hhvm folks as I was told) to resolve a trivial issue when landing pytorch + bc-breaking kineto changes in both oss and internal repos (because oss version has a submodule at a fixed revision) - we just need to assume that USE_KINETO_UPDATED is defined, remove the usage of USE_KINETO_UPDATED, keep the code sections that are within USE_KINETO_UPDATED and discard the ones that are in the 'else' section

@gdankel
Copy link
Contributor

gdankel commented Jun 10, 2021

@ilia-cher isn't the process you used in the past to remove the old code and compile flag?

@ilia-cher
Copy link
Contributor

@ilia-cher isn't the process you used in the past to remove the old code and compile flag?

you're right, looks like we just need to remove !USE_KINETO_UPDATED sections

@ilia-cher
Copy link
Contributor

@ilia-cher isn't the process you used in the past to remove the old code and compile flag?

ideally, we just need to remove usages of USE_KINETO_UPDATED by updating the submodule after changes to the kineto were landed, USE_KINETO_UPDATED is supposed to be used only temporarily in between those two events

@gdankel
Copy link
Contributor

gdankel commented Jun 10, 2021

Yes exactly - it's part of updating submodule.

@ngimel ngimel mentioned this pull request Jun 10, 2021
@ngimel
Copy link
Collaborator

ngimel commented Jun 10, 2021

Like this #59767?

@malfet
Copy link
Contributor Author

malfet commented Jun 10, 2021

Should we just fork it then?

@malfet malfet force-pushed the malfet/update-kineto-not-to-leak branch from 8698db1 to 885d148 Compare June 10, 2021 03:15
@facebook-github-bot
Copy link
Contributor

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@malfet merged this pull request in 827e00c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kineto leaks file descriptors during normal processName() call

6 participants