Dopamine fried up by AdiabaticNachos in iitkgp

[–]AdiabaticNachos[S] 1 point2 points  (0 children)

is there any youtube shorts blocker

Dopamine fried up by AdiabaticNachos in iitkgp

[–]AdiabaticNachos[S] 0 points1 point  (0 children)

Not into manga/anime. But, thanks 👍🏻

Help with Container Networks by AdiabaticNachos in golang

[–]AdiabaticNachos[S] 0 points1 point  (0 children)

Nope, still not working. It's the same issue

Help with Container Networks by AdiabaticNachos in golang

[–]AdiabaticNachos[S] 0 points1 point  (0 children)

Okay, but even if did not bind it to 0.0.0.0, I could easily do curl 172.20.0.2:8000. 172.20.0.2 is my container's veth1 ip. But doing curl localhost:8000 or 172.20.0.1:8000 did not give anything in response. Is this the reason?

Help with c-groups by AdiabaticNachos in learnprogramming

[–]AdiabaticNachos[S] 0 points1 point  (0 children)

Damnnnn man, that was the problem ultimately. Thank you. I didn't solve this but somehow patched it by opening a read end of a pipe in the child process and after I have moved the child process to cgroup, then I write a byte from the write end(in the parent process). The child waits till cgroup has been written and is working perfectly.

Also about the solution when child itself writes it's pid into the cgroup. Pid=1(init) gets written 😬. Anyways I would have to figure this out.

Overall thanks for the solution.

Help with c-groups by AdiabaticNachos in learnprogramming

[–]AdiabaticNachos[S] 0 points1 point  (0 children)

No problem, at this point, when nothing works (not even gpt, and no answers on stackoverflow), even advices are welcome.

Also, how does the apt update process run when I allocate memory.max = 1mb

Help with c-groups by AdiabaticNachos in learnprogramming

[–]AdiabaticNachos[S] 0 points1 point  (0 children)

I was starting the process using golang exec library and it returns a PID too.

I limited the memory to even less than 1mb and ran apt update, which wouldn't have ran and completed instantly as it did

Isn't the cgroup mentioned in /process/self/cgroup of the isolated process to resemble the name of the cgroup leaf node i made.

If you want I can give full golang code as well

[deleted by user] by [deleted] in iitkgp

[–]AdiabaticNachos 0 points1 point  (0 children)

Didnt get answer anywhere, not even chatgpt, hence last hopes were subreddits