* mac80211: STA info size
@ 2008-02-22 10:15 Johannes Berg
2008-02-22 14:34 ` John W. Linville
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-02-22 10:15 UTC (permalink / raw)
To: Ron Rindjunsky; +Cc: Felix Fietkau, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]
Hi,
I was just reorganising struct sta_info to clarify the locking (will
send another mail about that) and noticed that due to the HT stuff, each
STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000
of those are in struct sta_ampdu_mlme which is most likely not used for
most STAs.
Do you think that is too much memory per station? It'd probably be
possible to allocate the sta_ampdu_mlme dynamically when needed, no?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mac80211: STA info size
2008-02-22 10:15 mac80211: STA info size Johannes Berg
@ 2008-02-22 14:34 ` John W. Linville
2008-02-22 15:15 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: John W. Linville @ 2008-02-22 14:34 UTC (permalink / raw)
To: Johannes Berg; +Cc: Ron Rindjunsky, Felix Fietkau, linux-wireless
On Fri, Feb 22, 2008 at 11:15:07AM +0100, Johannes Berg wrote:
> I was just reorganising struct sta_info to clarify the locking (will
> send another mail about that) and noticed that due to the HT stuff, each
> STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000
> of those are in struct sta_ampdu_mlme which is most likely not used for
> most STAs.
>
> Do you think that is too much memory per station? It'd probably be
> possible to allocate the sta_ampdu_mlme dynamically when needed, no?
My count was closer to 1.5k, but I may have missed something.
Either way, that seems a little big to me. A dynamic allocation
strategy seems appropriate to me. Anyone disagree?
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mac80211: STA info size
2008-02-22 14:34 ` John W. Linville
@ 2008-02-22 15:15 ` Johannes Berg
2008-03-04 10:06 ` Ron Rindjunsky
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-02-22 15:15 UTC (permalink / raw)
To: John W. Linville; +Cc: Ron Rindjunsky, Felix Fietkau, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
> > STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000
> > of those are in struct sta_ampdu_mlme which is most likely not used for
> > most STAs.
> >
> > Do you think that is too much memory per station? It'd probably be
> > possible to allocate the sta_ampdu_mlme dynamically when needed, no?
>
> My count was closer to 1.5k, but I may have missed something.
You need to get pahole :P
http://lwn.net/Articles/206805/
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mac80211: STA info size
2008-02-22 15:15 ` Johannes Berg
@ 2008-03-04 10:06 ` Ron Rindjunsky
0 siblings, 0 replies; 4+ messages in thread
From: Ron Rindjunsky @ 2008-03-04 10:06 UTC (permalink / raw)
To: Johannes Berg; +Cc: John W. Linville, Felix Fietkau, linux-wireless
> > > STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000
> > > of those are in struct sta_ampdu_mlme which is most likely not used for
> > > most STAs.
> > >
> > > Do you think that is too much memory per station? It'd probably be
> > > possible to allocate the sta_ampdu_mlme dynamically when needed, no?
> >
> > My count was closer to 1.5k, but I may have missed something.
>
I did the check myself and your numbers are correct. i also think
dynamic allocation is the way to go. unless something i skipped will
pop up i'll do the changes.
Ron
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-04 10:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22 10:15 mac80211: STA info size Johannes Berg
2008-02-22 14:34 ` John W. Linville
2008-02-22 15:15 ` Johannes Berg
2008-03-04 10:06 ` Ron Rindjunsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).