<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=RO>Guess I’ll use 0 as well, thanks for the warning. Și da, alocatoarele din kernel nu vor da întotdeauna eroare când nu mai au loc,<o:p></o:p></span></p><p class=MsoNormal><span lang=RO>ci vor aștepta ad infinitum să se elibereze ceva memorie (în funcție de GFP)</span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:valentin.babalau1208@gmail.com">Valentin Babalau</a><br><b>Sent: </b>Wednesday, May 13, 2020 5:05 PM<br><b>To: </b><a href="mailto:olarupaulstelian97@gmail.com">Paul Olaru</a><br><b>Cc: </b><a href="mailto:so2@cursuri.cs.pub.ro">Sisteme de Operare 2</a><br><b>Subject: </b>Re: [so2] [Tema 4] Problema sk_alloc</p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Salut,</p><div><p class=MsoNormal> Am pus 0 in loc de 1 ca parametru la proto_register si acum imi merge.</p></div><div><p class=MsoNormal>Multumesc!</p></div><div><p class=MsoNormal>Valentin</p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>În mie., 13 mai 2020 la 16:50, Paul Olaru <<a href="mailto:olarupaulstelian97@gmail.com">olarupaulstelian97@gmail.com</a>> a scris:</p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Când ai dat proto_register, ce ai dat la parametrul alloc_slab? Try the other way, ar putea să aibă un efect.</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Îmi imaginez că dacă dai cu 1 face el toate alocările necesare în cadrul proto_register și sk_alloc doar va</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>prelua memorie din acel pool (kmemcache) alocat în timpul register. I mean...</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>Also în sk_alloc, be aware of your context. Încearcă să îi dai GFP_NONBLOCK dacă nu chiar GFP_ATOMIC.</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=RO>_<i>Also try giving more RAM</i>_</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>From: </b><a href="mailto:so2@cursuri.cs.pub.ro" target="_blank">Valentin Babalau via so2</a><br><b>Sent: </b>Wednesday, May 13, 2020 4:44 PM<br><b>To: </b><a href="mailto:so2@cursuri.cs.pub.ro" target="_blank">Sisteme de Operare 2</a><br><b>Subject: </b>[so2] [Tema 4] Problema sk_alloc</p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Salut,</p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> In functia de create socket am o problema cu functia sk_alloc. Checkerul se blocheaza la testul test socket cand se apeleaza aceasta functie. Are cineva vreo idee care ar fii cauza?</p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Valentin</p></div></div></blockquote></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:4.8pt'> </p><p class=MsoNormal><o:p> </o:p></p></div></body></html>